summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/generated/examples/sourcecode_bitkeeper_1.xml6
-rw-r--r--doc/generated/examples/sourcecode_cvs_1.xml6
-rw-r--r--doc/generated/examples/sourcecode_rcs_1.xml6
-rw-r--r--doc/generated/examples/sourcecode_sccs_1.xml6
-rw-r--r--doc/user/builders-writing.xml9
-rw-r--r--doc/user/factories.xml5
-rw-r--r--doc/user/file-removal.xml1
7 files changed, 13 insertions, 26 deletions
diff --git a/doc/generated/examples/sourcecode_bitkeeper_1.xml b/doc/generated/examples/sourcecode_bitkeeper_1.xml
deleted file mode 100644
index 41af3a2..0000000
--- a/doc/generated/examples/sourcecode_bitkeeper_1.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<screen xmlns="http://www.scons.org/dbxsd/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">% <userinput>scons -Q</userinput>
-AttributeError: 'SConsEnvironment' object has no attribute 'BitKeeper':
- File "/home/my/project/SConstruct", line 2:
- env.SourceCode('.', env.BitKeeper())
-</screen>
diff --git a/doc/generated/examples/sourcecode_cvs_1.xml b/doc/generated/examples/sourcecode_cvs_1.xml
deleted file mode 100644
index 01ddb6b..0000000
--- a/doc/generated/examples/sourcecode_cvs_1.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<screen xmlns="http://www.scons.org/dbxsd/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">% <userinput>scons -Q</userinput>
-AttributeError: 'SConsEnvironment' object has no attribute 'CVS':
- File "/home/my/project/SConstruct", line 2:
- env.SourceCode('.', env.CVS('/usr/local/CVS'))
-</screen>
diff --git a/doc/generated/examples/sourcecode_rcs_1.xml b/doc/generated/examples/sourcecode_rcs_1.xml
deleted file mode 100644
index e6b36dd..0000000
--- a/doc/generated/examples/sourcecode_rcs_1.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<screen xmlns="http://www.scons.org/dbxsd/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">% <userinput>scons -Q</userinput>
-AttributeError: 'SConsEnvironment' object has no attribute 'RCS':
- File "/home/my/project/SConstruct", line 2:
- env.SourceCode('.', env.RCS())
-</screen>
diff --git a/doc/generated/examples/sourcecode_sccs_1.xml b/doc/generated/examples/sourcecode_sccs_1.xml
deleted file mode 100644
index e0699d1..0000000
--- a/doc/generated/examples/sourcecode_sccs_1.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<screen xmlns="http://www.scons.org/dbxsd/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">% <userinput>scons -Q</userinput>
-AttributeError: 'SConsEnvironment' object has no attribute 'SCCS':
- File "/home/my/project/SConstruct", line 2:
- env.SourceCode('.', env.SCCS())
-</screen>
diff --git a/doc/user/builders-writing.xml b/doc/user/builders-writing.xml
index 8586853..6b32068 100644
--- a/doc/user/builders-writing.xml
+++ b/doc/user/builders-writing.xml
@@ -115,7 +115,8 @@ bld = Builder(action = 'foobuild &lt; $SOURCE &gt; $TARGET')
<scons_example name="builderswriting_ex1">
<file name="SConstruct">
-bld = Builder(action = 'foobuild &lt; $SOURCE &gt; $TARGET')
+import os
+bld=Builder(action = 'foobuild &lt; $SOURCE &gt; $TARGET')
env = Environment(BUILDERS={'Foo': bld})
env.AppendENVPath('PATH', os.getcwd())
env.Foo('file.foo', 'file.input')
@@ -129,7 +130,7 @@ cat
</scons_example>
<sconstruct>
-bld = Builder(action = 'foobuild &lt; $SOURCE &gt; $TARGET')
+bld = Builder(action='foobuild &lt; $SOURCE &gt; $TARGET')
env = Environment(BUILDERS={'Foo': bld})
</sconstruct>
@@ -225,6 +226,7 @@ hello.c
<scons_example name="builderswriting_ex3">
<file name="SConstruct">
+import os
env = Environment()
env.AppendENVPath('PATH', os.getcwd())
bld = Builder(action='foobuild &lt; $SOURCE &gt; $TARGET')
@@ -303,6 +305,7 @@ env.Program('hello.c')
<scons_example name="builderswriting_ex4">
<file name="SConstruct">
+import os
bld = Builder(
action='foobuild &lt; $SOURCE &gt; $TARGET',
suffix='.foo',
@@ -606,6 +609,7 @@ def generate_actions(source, target, env, for_signature):
<scons_example name="builderswriting_ex6">
<file name="SConstruct">
+import os
def generate_actions(source, target, env, for_signature):
return 'foobuild &lt; %s &gt; %s' % (source[0], target[0])
@@ -689,6 +693,7 @@ env.Foo('file')
<scons_example name="builderswriting_ex7">
<file name="SConstruct">
+import os
def modify_targets(target, source, env):
target.append('new_target')
source.append('new_source')
diff --git a/doc/user/factories.xml b/doc/user/factories.xml
index 8c2458d..ad35cc2 100644
--- a/doc/user/factories.xml
+++ b/doc/user/factories.xml
@@ -158,6 +158,7 @@ Command(
)
</file>
<file name="SConstruct">
+import os
env = DefaultEnvironment()
env.AppendENVPath('PATH', os.getcwd())
SConscript('S')
@@ -230,6 +231,7 @@ Command(
)
</file>
<file name="SConstruct">
+import os
env = DefaultEnvironment()
env.AppendENVPath('PATH', os.getcwd())
SConscript('S')
@@ -329,6 +331,7 @@ Command(
)
</file>
<file name="SConstruct">
+import os
env = DefaultEnvironment()
env.AppendENVPath('PATH', os.getcwd())
SConscript('S')
@@ -374,6 +377,7 @@ Command(
)
</file>
<file name="SConstruct">
+import os
env = DefaultEnvironment()
env.AppendENVPath('PATH', os.getcwd())
SConscript('S')
@@ -424,6 +428,7 @@ Command(
)
</file>
<file name="SConstruct">
+import os
env = DefaultEnvironment()
env.AppendENVPath('PATH', os.getcwd())
SConscript('S')
diff --git a/doc/user/file-removal.xml b/doc/user/file-removal.xml
index 6039175..3eb6a84 100644
--- a/doc/user/file-removal.xml
+++ b/doc/user/file-removal.xml
@@ -203,6 +203,7 @@ t = Command('foo.out', 'foo.in', 'build -o $TARGET $SOURCE')
Clean(t, 'foo.log')
</file>
<file name="SConstruct">
+import os
env = DefaultEnvironment()
env.AppendENVPath('PATH', os.getcwd())
SConscript('S')