summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-01-16 03:33:12 (GMT)
committerSteven Knight <knight@baldmt.com>2004-01-16 03:33:12 (GMT)
commit49eaa73bb3aa164eb66668b11c09318b74edb052 (patch)
tree267cfc4b8d109942f98162ef0f7c20589b709a86
parent4ad2624f3ec90a7dc4865b2955f8f972dec8cee2 (diff)
downloadSCons-49eaa73bb3aa164eb66668b11c09318b74edb052.zip
SCons-49eaa73bb3aa164eb66668b11c09318b74edb052.tar.gz
SCons-49eaa73bb3aa164eb66668b11c09318b74edb052.tar.bz2
Make our source-file builds depend on the Copyright years, and fix the option-v accordingly.
-rw-r--r--SConstruct3
-rw-r--r--test/option-v.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 2599263..d2cc7b4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -247,7 +247,8 @@ def SCons_revision(target, source, env):
outf.close()
os.chmod(t, os.stat(s)[0])
-revbuilder = Builder(action = Action(SCons_revision, varlist=['VERSION']))
+revbuilder = Builder(action = Action(SCons_revision,
+ varlist=['COPYRIGHT', 'VERSION']))
env = Environment(
ENV = ENV,
diff --git a/test/option-v.py b/test/option-v.py
index ab9fef0..d1078c0 100644
--- a/test/option-v.py
+++ b/test/option-v.py
@@ -37,13 +37,13 @@ test.write('SConstruct', "")
# depending on whether it's invoked through scons.py or scons.bat.
expect1 = r"""SCons by Steven Knight et al.:
\tengine: v\S+, [^,]*, by \S+ on \S+
-(__COPYRIGHT__|Copyright \(c\) 2001, 2002, 2003 Steven Knight)
+(__COPYRIGHT__|Copyright \(c\) 2001, 2002, 2003, 2004 Steven Knight)
"""
expect2 = r"""SCons by Steven Knight et al.:
\tscript: v\S+, [^,]*, by \S+ on \S+
\tengine: v\S+, [^,]*, by \S+ on \S+
-(__COPYRIGHT__|Copyright \(c\) 2001, 2002, 2003 Steven Knight)
+(__COPYRIGHT__|Copyright \(c\) 2001, 2002, 2003, 2004 Steven Knight)
"""
test.run(arguments = '-v')