diff options
author | William Deegan <bill@baddogconsulting.com> | 2010-01-19 05:59:03 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2010-01-19 05:59:03 (GMT) |
commit | bf296710383d7b1a744b62a007041c677583ad6a (patch) | |
tree | 60cc1567364d74f85e24f866952e799167288f49 /doc/user/builders-commands.xml | |
parent | 3d4e4224d0a2b66cd0a9896cac16a785b2629f4c (diff) | |
download | SCons-bf296710383d7b1a744b62a007041c677583ad6a.zip SCons-bf296710383d7b1a744b62a007041c677583ad6a.tar.gz SCons-bf296710383d7b1a744b62a007041c677583ad6a.tar.bz2 |
Merge back from checkpoint.
Need to regenerate the .xml files.
Diffstat (limited to 'doc/user/builders-commands.xml')
-rw-r--r-- | doc/user/builders-commands.xml | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/doc/user/builders-commands.xml b/doc/user/builders-commands.xml index fcb2a96..23fe4ce 100644 --- a/doc/user/builders-commands.xml +++ b/doc/user/builders-commands.xml @@ -85,62 +85,3 @@ <screen> % <userinput>scons -Q</userinput> - sed 's/x/y/' < foo.in > foo.out - </screen> - - <para> - - This is often more convenient than - creating a &Builder; object - and adding it to the &cv-link-BUILDERS; variable - of a &consenv; - - </para> - - <para> - - Note that the action you specify to the - &Command; &Builder; can be any legal &SCons; &Action;, - such as a Python function: - - </para> - - <programlisting> - env = Environment() - def build(target, source, env): - # Whatever it takes to build - return None - env.Command('foo.out', 'foo.in', build) - </programlisting> - - <para> - - Which executes as follows: - - </para> - - <screen> - % <userinput>scons -Q</userinput> - build(["foo.out"], ["foo.in"]) - </screen> - - <para> - - Note that &cv-link-SOURCE; and &cv-link-TARGET; are expanded - in the source and target as well as of SCons 1.1, - so you can write: - - </para> - - <programlisting> - env.Command('${SOURCE.basename}.out', 'foo.in', build) - </programlisting> - - - <para> - - which does the same thing as the previous example, but allows you - to avoid repeating yourself. - - </para> - |