summaryrefslogtreecommitdiffstats
path: root/doc/user/builders-writing.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/user/builders-writing.xml')
-rw-r--r--doc/user/builders-writing.xml62
1 files changed, 31 insertions, 31 deletions
diff --git a/doc/user/builders-writing.xml b/doc/user/builders-writing.xml
index 74787fe..e676ef2 100644
--- a/doc/user/builders-writing.xml
+++ b/doc/user/builders-writing.xml
@@ -185,7 +185,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="ex1">
+ <scons_example name="builderswriting_ex1">
<file name="SConstruct">
bld = Builder(action = 'foobuild &lt; $SOURCE &gt; $TARGET')
env = Environment(BUILDERS = {'Foo' : bld})
@@ -224,8 +224,8 @@ This functionality could be invoked as in the following example:
</para>
- <scons_output example="ex1">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_ex1">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
<para>
@@ -259,7 +259,7 @@ This functionality could be invoked as in the following example:
in the generated error consistent with what the user will see in the
User's Guide.
-->
- <scons_example name="ex2">
+ <scons_example name="builderswriting_ex2">
<file name="SConstruct">
import SCons.Defaults; SCons.Defaults.ConstructionEnvironment['TOOLS'] = {}; bld = Builder(action = 'foobuild &lt; $SOURCE &gt; $TARGET')
env = Environment(BUILDERS = {'Foo' : bld})
@@ -280,8 +280,8 @@ This functionality could be invoked as in the following example:
</file>
</scons_example>
- <scons_output example="ex2">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_ex2">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
<para>
@@ -293,7 +293,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="ex3">
+ <scons_example name="builderswriting_ex3">
<file name="SConstruct">
env = Environment()
import os
@@ -346,8 +346,8 @@ This functionality could be invoked as in the following example:
</para>
- <scons_output example="ex3">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_ex3">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
</section>
@@ -372,7 +372,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="ex4">
+ <scons_example name="builderswriting_ex4">
<file name="SConstruct">
bld = Builder(action = 'foobuild &lt; $SOURCE &gt; $TARGET',
suffix = '.foo',
@@ -403,8 +403,8 @@ This functionality could be invoked as in the following example:
env.Foo('file2')
</sconstruct>
- <scons_output example="ex4">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_ex4">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
<para>
@@ -519,7 +519,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="ex5">
+ <scons_example name="builderswriting_ex5">
<file name="SConstruct" printme="1">
def build_function(target, source, env):
# Code to build "target" from "source"
@@ -544,8 +544,8 @@ This functionality could be invoked as in the following example:
</para>
- <scons_output example="ex5">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_ex5">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
</section>
@@ -666,7 +666,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="ex6">
+ <scons_example name="builderswriting_ex6">
<file name="SConstruct">
def generate_actions(source, target, env, for_signature):
return 'foobuild &lt; %s &gt; %s' % (source[0], target[0])
@@ -696,8 +696,8 @@ This functionality could be invoked as in the following example:
env.Foo('file')
</sconstruct>
- <scons_output example="ex6">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_ex6">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
<para>
@@ -744,7 +744,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="ex7">
+ <scons_example name="builderswriting_ex7">
<file name="SConstruct">
def modify_targets(target, source, env):
target.append('new_target')
@@ -789,8 +789,8 @@ This functionality could be invoked as in the following example:
</para>
- <scons_output example="ex7">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_ex7">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
<para>
@@ -809,7 +809,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="MY_EMITTER">
+ <scons_example name="builderswriting_MY_EMITTER">
<file name="SConstruct" printme="1">
bld = Builder(action = 'my_command $SOURCES &gt; $TARGET',
@@ -874,8 +874,8 @@ This functionality could be invoked as in the following example:
</para>
- <scons_output example="MY_EMITTER">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_MY_EMITTER">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
</section>
@@ -960,7 +960,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="site1">
+ <scons_example name="builderswriting_site1">
<file name="site_scons/site_init.py" printme="1">
def TOOL_ADD_HEADER(env):
"""A Tool to add a header from $HEADER to the source file"""
@@ -999,8 +999,8 @@ This functionality could be invoked as in the following example:
</para>
<!--
- <scons_output example="site1" os="posix">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_site1" os="posix">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
-->
@@ -1034,7 +1034,7 @@ This functionality could be invoked as in the following example:
functions:
</para>
- <scons_example name="site2">
+ <scons_example name="builderswriting_site2">
<file name="site_scons/my_utils.py" printme="1">
from SCons.Script import * # for Execute and Mkdir
def build_id():
@@ -1110,7 +1110,7 @@ This functionality could be invoked as in the following example:
</para>
- <scons_example name="ex8">
+ <scons_example name="builderswriting_ex8">
<file name="SConstruct" printme="1">
env = Environment()
#env.SourceCode('.', env.BitKeeper('my_command'))
@@ -1121,8 +1121,8 @@ This functionality could be invoked as in the following example:
</file>
</scons_example>
- <scons_output example="ex8">
- <scons_output_command>scons -Q</scons_output_command>
+ <scons_output example="builderswriting_ex8">
+ <scons_output_command suffix="1">scons -Q</scons_output_command>
</scons_output>
</section>