summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-05-06 15:06:09 (GMT)
committerSteven Knight <knight@baldmt.com>2002-05-06 15:06:09 (GMT)
commit7f24756809ba8ae0c2aa27e8ba8f906b7fef1d3d (patch)
tree3528f6acc866caea337cdd897b31f85ae36a049e /doc
parente6e85a842cb066639048a6344db51b747eaf4245 (diff)
downloadSCons-7f24756809ba8ae0c2aa27e8ba8f906b7fef1d3d.zip
SCons-7f24756809ba8ae0c2aa27e8ba8f906b7fef1d3d.tar.gz
SCons-7f24756809ba8ae0c2aa27e8ba8f906b7fef1d3d.tar.bz2
Add Append() and Replace() functions. (Zed Shaw)
Diffstat (limited to 'doc')
-rw-r--r--doc/man/scons.126
1 files changed, 23 insertions, 3 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index a716147..c60cf17 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -995,12 +995,32 @@ env.Alias('install', ['/usr/local/bin', '/usr/local/lib'])
.EE
.TP
-.RI Update( key = val ", [...])"
-Updates the contents of an environment
+.RI Replace( key = val ", [...])"
+Replaces construction variables in the Environment
with the specified keyword arguments.
+(Note: "Update()" is a deprecated synonym for this method.)
.ES
-env.Update(CCFLAGS = '-g', FOO = 'foo.xxx')
+env.Replace(CCFLAGS = '-g', FOO = 'foo.xxx')
+.EE
+
+.TP
+.RI Append( key = val ", [...])"
+Appends the specified keyword arguments
+to the 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.
+
+.ES
+env.Append(CCFLAGS = ' -g', FOO = ['foo.yyy'])
.EE
.SS Construction Variables