diff options
author | Steven Knight <knight@baldmt.com> | 2002-05-06 15:06:09 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-05-06 15:06:09 (GMT) |
commit | 7f24756809ba8ae0c2aa27e8ba8f906b7fef1d3d (patch) | |
tree | 3528f6acc866caea337cdd897b31f85ae36a049e /doc | |
parent | e6e85a842cb066639048a6344db51b747eaf4245 (diff) | |
download | SCons-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.1 | 26 |
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 |