summaryrefslogtreecommitdiffstats
path: root/test/CommandGenerator.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-03-08 06:01:39 (GMT)
committerSteven Knight <knight@baldmt.com>2002-03-08 06:01:39 (GMT)
commitbd1384bd791e94dd5191f50d92850e857a987d08 (patch)
tree7349dc7549b054db7f64250233718c2bbc7cce03 /test/CommandGenerator.py
parent232ea1169c24b803d0c90e3cdb277e356b2eb087 (diff)
downloadSCons-bd1384bd791e94dd5191f50d92850e857a987d08.zip
SCons-bd1384bd791e94dd5191f50d92850e857a987d08.tar.gz
SCons-bd1384bd791e94dd5191f50d92850e857a987d08.tar.bz2
Changes to the CommandGenerator functionality. (Charles Crain)
Diffstat (limited to 'test/CommandGenerator.py')
-rw-r--r--test/CommandGenerator.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/CommandGenerator.py b/test/CommandGenerator.py
index c1413d6..a85b07a 100644
--- a/test/CommandGenerator.py
+++ b/test/CommandGenerator.py
@@ -45,11 +45,12 @@ test.write('SConstruct', """
def g(source, target, env):
import sys
python = sys.executable
- return [[python, "build.py", ".temp"] + source,
- [python, "build.py"] + target + [".temp"]]
+ return [[python, "build.py", "$TEMPFILE"] + source,
+ [python, "build.py"] + target + ["$TEMPFILE"]]
b = Builder(name = 'b', generator=g)
-env = Environment(BUILDERS = [b])
+env = Environment(BUILDERS = [b],
+ TEMPFILE=".temp")
env.b(target = 'foo1.out', source = 'foo1.in')
env.b(target = 'foo2.out', source = 'foo2.in')
env.b(target = 'foo3.out', source = 'foo3.in')