* [gentoo-commits] proj/auto-numerical-bench:master commit in: numbench/, doc/
@ 2011-08-19 11:45 Andrea Arteaga
0 siblings, 0 replies; only message in thread
From: Andrea Arteaga @ 2011-08-19 11:45 UTC (permalink / raw
To: gentoo-commits
commit: 956c17a127d65428d8cece41844c07fa3833f585
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Fri Aug 19 11:45:41 2011 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Fri Aug 19 11:45:41 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/auto-numerical-bench.git;a=commit;h=956c17a1
Updated documentation and allow more environment bash files.
---
doc/numbench.1 | 16 ++++++++++++++++
numbench/main.py | 4 +++-
2 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/doc/numbench.1 b/doc/numbench.1
index f7c3905..e429c8b 100644
--- a/doc/numbench.1
+++ b/doc/numbench.1
@@ -88,6 +88,22 @@ atlas-gcc-4.6.1 sci-libs/atlas-3.9.46 CC=gcc-4.6.1 CFLAGS="-O3 -march=native"
.PP
Variables that affect the emerge process, such as USE, can be used
and are effective.
+Another possibility to set the environment used during the emerge process is
+writing a bash script that uses the export directives. These files have to be
+specified added to the line with a leading @ mark. More files can be specified;
+in this case the latter files override the variables in case of collisions;
+the environment variables that are specified on the configuration line override
+the variables set through files in case of collisions. The files can be
+specified with both a relative path or an absolute one. The following examples
+show this feature:
+
+.RS
+atlas-gcc sci-libs/atlas-3.9.46 @envforatlas.sh @envforgcc
+
+atlas-gcc sci-libs/atlas-3.9.46 @envforatlas.sh CC=gcc-4.6.1 CFLAGS="-O3"
+.RE
+
+.PP
More configuration options are available. As each package can
install many implementations of the same library (for instance, the
sci-libs/atlas package installs the serial version and the
diff --git a/numbench/main.py b/numbench/main.py
index 58e5e58..bab534f 100755
--- a/numbench/main.py
+++ b/numbench/main.py
@@ -86,7 +86,9 @@ def tests_from_input(input):
# if @file: read bash script and set env
elif var[0] == '@':
- fileenv = readEnvFile(pjoin(cfg.curdir, var[1:]))
+ fileenvNew = readEnvFile(pjoin(cfg.curdir, var[1:]))
+ fileenv = dict( fileenv.items() + fileenvNew.items() )
+ del fileenvNew
# Otherwise, assume key=value syntax
else:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-19 11:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 11:45 [gentoo-commits] proj/auto-numerical-bench:master commit in: numbench/, doc/ Andrea Arteaga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox