From: stevenknight Date: Fri, 16 Jan 2004 03:33:12 +0000 (+0000) Subject: Make our source-file builds depend on the Copyright years, and fix the option-v accor... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=92bd5c33927172e759c581ab0ef206b90bfcaffb;p=scons.git Make our source-file builds depend on the Copyright years, and fix the option-v accordingly. git-svn-id: http://scons.tigris.org/svn/scons/trunk@878 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/SConstruct b/SConstruct index 25992636..d2cc7b4b 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 ab9fef0c..d1078c0e 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')