+RELEASE 0.09 -
+
+ From Anthony Roach:
+
+ - Fixed use of command lines with spaces in their arguments,
+ and use of Nodes with spaces in their string representation.
+
+ - Make access and modification times of files in a BuildDir match
+ the source file, even when hard linking isn't available.
+
+ - Make -U be case insensitive on Win32 systems.
+
+
+
RELEASE 0.08 - Mon, 15 Jul 2002 12:08:51 -0500
From Charles Crain:
elif climb_up == 3 and not targets:
# -U with default targets
default_targets = SCons.Script.SConscript.default_targets
- default_targets = filter(lambda x: x.cwd.srcpath == str(target_top),
- default_targets)
+ def check_dir(x):
+ cwd = SCons.Node.FS.default_fs.Dir(x.cwd.srcpath)
+ return cwd == target_top
+ default_targets = filter(check_dir, default_targets)
SCons.Script.SConscript.default_targets = default_targets
target_top = None
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import os
import os.path
import sys
file.close()
""")
-test.write('SConstruct', """
+test.write('SConstruct', r"""
import SCons.Defaults
env = Environment()
-env['BUILDERS']['B'] = Builder(action='%s build.py $TARGET $SOURCES', multi=1)
+env['BUILDERS']['B'] = Builder(action=r'%s build.py $TARGET $SOURCES', multi=1)
Default(env.B(target = 'sub1/foo.out', source = 'sub1/foo.in'))
Export('env')
SConscript('sub2/SConscript')
test.fail_test(os.path.exists(test.workpath('bar.out')))
test.fail_test(os.path.exists(test.workpath('sub2/xxx.out')))
-test.write('SConscript', """assert GetLaunchDir() == r'%s'"""%test.workpath('sub2'))
-test.run(chdir = 'sub2', arguments = '-U')
+
+if sys.platform == 'win32':
+ test.write('SConscript', """assert GetLaunchDir() == r'%s'"""%test.workpath('SUB2'))
+ test.run(chdir = 'SUB2', arguments = '-U')
+else:
+ test.write('SConscript', """assert GetLaunchDir() == r'%s'"""%test.workpath('sub2'))
+ test.run(chdir = 'sub2', arguments = '-U')
test.fail_test(os.path.exists(test.workpath('sub1', 'foo.out')))
test.fail_test(not os.path.exists(test.workpath('sub2', 'bar.out')))
test.fail_test(not os.path.exists(test.workpath('sub2b', 'bar.out')))