summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-08-26 04:10:41 (GMT)
committerSteven Knight <knight@baldmt.com>2002-08-26 04:10:41 (GMT)
commitcff75e572311356bfd6d80c460c1140492a35073 (patch)
treefcdf14cc3aff099936e069fe6f45ef01da89f43c /doc
parent62446cb66567e967e1af2b6a0c152fdeb98508c8 (diff)
downloadSCons-cff75e572311356bfd6d80c460c1140492a35073.zip
SCons-cff75e572311356bfd6d80c460c1140492a35073.tar.gz
SCons-cff75e572311356bfd6d80c460c1140492a35073.tar.bz2
Add a Prepend() method to Environments. (Chad Austin)
Diffstat (limited to 'doc')
-rw-r--r--doc/man/scons.123
1 files changed, 22 insertions, 1 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 3e4b64a..fd1b3ff 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -1136,7 +1136,7 @@ env.Alias('install', ['/usr/local/man'])
.TP
.RI Append( key = val ", [...])"
Appends the specified keyword arguments
-to the construction variables in the environment.
+to the end of construction variables in the environment.
If the Environment does not have
the specified construction variable,
it is simply added to the environment.
@@ -1147,6 +1147,7 @@ Otherwise, the construction variable
and the value of the keyword argument
are both coerced to lists,
and the lists are added together.
+(See also the Prepend method, below.)
.ES
env.Append(CCFLAGS = ' -g', FOO = ['foo.yyy'])
@@ -1271,6 +1272,26 @@ Multiple targets can be passed in to a single call to
.BR Precious ().
.TP
+.RI Prepend( key = val ", [...])"
+Appends the specified keyword arguments
+to the beginning of construction variables in the environment.
+If the Environment does not have
+the specified construction variable,
+it is simply added to the environment.
+If the values of the construction variable
+and the keyword argument are the same type,
+then the two values will be simply added together.
+Otherwise, the construction variable
+and the value of the keyword argument
+are both coerced to lists,
+and the lists are added together.
+(See also the Append method, above.)
+
+.ES
+env.Prepend(CCFLAGS = '-g ', FOO = ['foo.yyy'])
+.EE
+
+.TP
.RI Replace( key = val ", [...])"
Replaces construction variables in the Environment
with the specified keyword arguments.