"rm -rf %s" % b_psv,
"cp -rp %s %s" % (b_ps, b_psv),
"find %s -name .consign -exec rm {} \\;" % b_psv,
- "tar zcf $TARGET -C build %s" % psv,
+ "tar czh -f $TARGET -C build %s" % psv,
]
env.Command(os.path.join('build',
'dist',
keys.sort()
for name in keys:
file.write("%s: %s\n" % (name, self.entries[name]))
- file.close
+ file.close()
if fname != self.sconsign:
+ try:
+ mode = os.stat(self.sconsign)[0]
+ os.chmod(self.sconsign, 0666)
+ os.unlink(self.sconsign)
+ except:
+ pass
try:
os.rename(fname, self.sconsign)
except:
open(self.sconsign, 'wb').write(open(fname, 'rb').read())
+ os.chmod(self.sconsign, mode)
try:
os.unlink(temp)
except:
test.write(sub1__sconsign, "")
test.write(sub2__sconsign, "")
-# For *NIX systems, make .sconsign not writable.
-# For Win32 systems, open it to lock it.
os.chmod(sub1__sconsign, 0444)
-f = open(sub1__sconsign, 'r')
test.run(arguments = '.')
test.fail_test(test.read(sub2__sconsign) == "")
os.chmod(sub1__sconsign, 0666)
-f.close()
test.pass_test()