diff options
author | Steven Knight <knight@baldmt.com> | 2004-03-16 00:56:26 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-03-16 00:56:26 (GMT) |
commit | 215d8f4f216c25b49188bfd5b385b03d0a4b3f38 (patch) | |
tree | 5d86726ecf4cfa6fe5271af455da50fd26e7e542 /doc | |
parent | 7f0857e23182eb4fba10dc65216c65dbe7ee13da (diff) | |
download | SCons-215d8f4f216c25b49188bfd5b385b03d0a4b3f38.zip SCons-215d8f4f216c25b49188bfd5b385b03d0a4b3f38.tar.gz SCons-215d8f4f216c25b49188bfd5b385b03d0a4b3f38.tar.bz2 |
Support passing arbitrary environment override keywords to Command().
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man/scons.1 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1 index caba4a5..c12595e 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -2308,15 +2308,17 @@ Clean('dist', env.Program('hello', 'hello.c')) '\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .TP -.RI Command( target ", " source ", " commands ) +.RI Command( target ", " source ", " commands ", [" key = val ", ...])" .TP -.RI env.Command( target ", " source ", " commands ) +.RI env.Command( target ", " source ", " commands ", [" key = val ", ...])" Executes a specific action (or list of actions) to build a target file or files. This is more convenient than defining a separate Builder object for a single special-case build. +Any keyword arguments specified override any +same-named existing construction variables. Note that an action can be an external command, specified as a string, @@ -2330,7 +2332,8 @@ env.Command('foo.out', 'foo.in', env.Command('bar.out', 'bar.in', ["rm -f $TARGET", - "$BAR_BUILD < $SOURCES > $TARGET"]) + "$BAR_BUILD < $SOURCES > $TARGET"], + ENV = {'PATH' : '/usr/local/bin/'}) def rename(env, target, source): import os |