summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-03-30 10:36:12 (GMT)
committerSteven Knight <knight@baldmt.com>2002-03-30 10:36:12 (GMT)
commit37bd22efa578e0c407a4e50fd3c40e20193a9260 (patch)
tree6b4bc016d3d8ecce7779a9c773e89883d2749d7b /SConstruct
parent1872e353ccd080dd5d2e338608c2dc614cd991d9 (diff)
downloadSCons-37bd22efa578e0c407a4e50fd3c40e20193a9260.zip
SCons-37bd22efa578e0c407a4e50fd3c40e20193a9260.tar.gz
SCons-37bd22efa578e0c407a4e50fd3c40e20193a9260.tar.bz2
Initialize the new branch.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct16
1 files changed, 12 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index 1d97f10..57e5c83 100644
--- a/SConstruct
+++ b/SConstruct
@@ -34,7 +34,7 @@ import sys
import time
project = 'scons'
-default_version = '0.06'
+default_version = '0.07'
Default('.')
@@ -198,6 +198,10 @@ try:
except:
pass
print dest,name
+ # if the file exists, then delete it before writing
+ # to it so that we don't end up trying to write to a symlink:
+ if os.path.exists(dest):
+ os.unlink(dest)
open(dest, 'w').write(zf.read(name))
except:
@@ -489,7 +493,7 @@ for p in [ scons ]:
# concocted to expand __FILE__, __VERSION__, etc.
#
for b in src_files:
- s = p['filemap'].get(b, b)
+ s = p['filemap'].get(b, b)
env.SCons_revision(os.path.join(build, b), os.path.join(src, s))
#
@@ -666,11 +670,15 @@ for p in [ scons ]:
# Use the Python distutils to generate the appropriate packages.
#
commands = [
- "rm -rf %s %s" % (os.path.join(build, 'build', 'lib'),
- os.path.join(build, 'build', 'scripts'))
+ "rm -rf %s" % os.path.join(build, 'build', 'lib'),
+ "rm -rf %s" % os.path.join(build, 'build', 'scripts'),
]
if distutils_formats:
+ commands.append("rm -rf %s" % os.path.join(build,
+ 'build',
+ 'bdist.' + platform,
+ 'dumb'))
for format in distutils_formats:
commands.append("python $SETUP_PY bdist_dumb -f %s" % format)