summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-01-17 05:49:38 (GMT)
committerSteven Knight <knight@baldmt.com>2003-01-17 05:49:38 (GMT)
commit9174c12d92d6a32c087bd5b891022ef5dc6f426f (patch)
tree2762318664fc7750a3a742d789b603c1cf2b48cf /SConstruct
parentb71b4b87ff6224de450018ba1a3192103f68160d (diff)
downloadSCons-9174c12d92d6a32c087bd5b891022ef5dc6f426f.zip
SCons-9174c12d92d6a32c087bd5b891022ef5dc6f426f.tar.gz
SCons-9174c12d92d6a32c087bd5b891022ef5dc6f426f.tar.bz2
Initialize the new branch.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 3 insertions, 7 deletions
diff --git a/SConstruct b/SConstruct
index e7de9bd..1d630b8 100644
--- a/SConstruct
+++ b/SConstruct
@@ -37,7 +37,7 @@ import sys
import time
project = 'scons'
-default_version = '0.10'
+default_version = '0.11'
Default('.')
@@ -224,10 +224,6 @@ def SCons_revision(target, source, env):
"""
t = str(target[0])
s = source[0].rstr()
- # Note: We don't use $VERSION from the environment so that
- # this routine will change when the version number changes
- # and things will get rebuilt properly.
- global version
inf = open(s, 'rb')
outf = open(t, 'wb')
for line in inf.readlines():
@@ -240,13 +236,13 @@ def SCons_revision(target, source, env):
line = string.replace(line, '__DEVELOPER' + '__', env['DEVELOPER'])
line = string.replace(line, '__FILE' + '__', s)
line = string.replace(line, '__REVISION' + '__', env['REVISION'])
- line = string.replace(line, '__VERSION' + '__', version)
+ line = string.replace(line, '__VERSION' + '__', env['VERSION'])
outf.write(line)
inf.close()
outf.close()
os.chmod(t, os.stat(s)[0])
-revbuilder = Builder(action = SCons_revision)
+revbuilder = Builder(action = Action(SCons_revision, varlist=['VERSION']))
env = Environment(
ENV = ENV,