Commits

Anonymous committed 65117f6

Add automatic substitution on filename lines.

Comments (0)

Files changed (77)

 				   # changes don't cause rebuilds.
 		 SEDFLAGS	=> " %( -e 's+__DATE__+%DATE+' %)" .
 				   " -e 's+__DEVELOPER__+%DEVELOPER+'" .
+				   " -e 's+__FILE__+%<+'" .
 				   " -e 's+__REVISION__+%REVISION+'" .
 				   " -e 's+__VERSION__+%VERSION+'",
 		 SEDCOM		=> "%SED %SEDFLAGS %< > %>",
 
 @modules = qw(TestCmd.py TestSCons.py unittest.py);
 
-$env->Install($env->{TEST_LIB_DIR}, @modules);
+foreach $module (@modules) {
+    $env->Command(File::Spec->catfile($env->{TEST_LIB_DIR}, $module),
+		  $module, "%SEDCOM");
+}
 
 # Copyright 2001 Steven Knight
 
-__revision__ = "TestSCons.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
 import TestCmd

src/engine/SCons/Builder.py

 
 """
 
-__revision__ = "Builder.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 
 

src/engine/SCons/BuilderTests.py

-__revision__ = "BuilderTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import sys
 import unittest

src/engine/SCons/Defaults.py

 
 """
 
-__revision__ = "local.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 
 

src/engine/SCons/Environment.py

 
 """
 
-__revision__ = "Environment.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 
 

src/engine/SCons/EnvironmentTests.py

-__revision__ = "EnvironmentTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import sys
 import unittest

src/engine/SCons/Errors.py

 
 """
 
-__revision__ = "Errors.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 
 

src/engine/SCons/ErrorsTests.py

-__revision__ = "ErrorsTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import sys
 import unittest

src/engine/SCons/Job.py

 
 """
 
-__revision__ = "Job.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 class Jobs:
     """An instance of this class initializes N jobs, and provides

src/engine/SCons/JobTests.py

-__revision__ = "JobTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import unittest
 import random

src/engine/SCons/Node/FS.py

 
 """
 
-__revision__ = "Node/FS.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 
 

src/engine/SCons/Node/FSTests.py

-__revision__ = "Node/FSTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
 import sys

src/engine/SCons/Node/NodeTests.py

-__revision__ = "Node/NodeTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
 import sys

src/engine/SCons/Node/__init__.py

 
 """
 
-__revision__ = "Node/__init__.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 
 

src/engine/SCons/Scanner/C.py

 
 """
 
-__revision__ = "Scanner/C.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 
 import SCons.Scanner

src/engine/SCons/Scanner/CTests.py

-__revision__ = "Scanner/CTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestCmd
 import SCons.Scanner.C

src/engine/SCons/Scanner/ScannerTests.py

-__revision__ = "Scanner/ScannerTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import unittest
 import SCons.Scanner

src/engine/SCons/Scanner/__init__.py

 
 """
 
-__revision__ = "Scanner/__init__.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 __version__ = "__VERSION__"
 

src/engine/SCons/Sig/MD5.py

 
 """
 
-__revision__ = "Sig/MD5.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import md5
 import string

src/engine/SCons/Sig/MD5Tests.py

-__revision__ = "Sig/MD5Tests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import sys
 import unittest

src/engine/SCons/Sig/TimeStamp.py

 
 """
 
-__revision__ = "Sig/TimeStamp.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 def _init():
     pass	# XXX

src/engine/SCons/Sig/TimeStampTests.py

-__revision__ = "Sig/TimeStampTests.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import sys
 import unittest

src/engine/SCons/Sig/__init__.py

 
 """
 
-__revision__ = "Sig/__init__.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

src/engine/SCons/__init__.py

 
 """
 
-__revision__ = "__init__.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 __version__ = "__VERSION__"

src/engine/SCons/exitfuncs.py

 
 """
 
-__revision__ = "exitfuncs.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 
 

src/engine/setup.py

-__revision__ = "setup.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 from string import join, split
 

src/script/scons.py

 # SCons
 #
 
-__revision__ = "scons.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import getopt
 import os.path

src/script/setup.py

-__revision__ = "setup.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 from string import join, split
 
 #!/usr/bin/env python
 
-__revision__ = "test/Help.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 

test/Program-j.py

 #!/usr/bin/env python
 
-__revision__ = "test/Program-j.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 
 #!/usr/bin/env python
 
-__revision__ = "test/Program.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 

test/SConscript.py

 #!/usr/bin/env python
 
-__revision__ = "test/SConscript.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 

test/SConstruct.py

 #!/usr/bin/env python
 
-__revision__ = "test/SConstruct.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 
 #!/usr/bin/env python
 
-__revision__ = "test/errors.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 
 #!/usr/bin/env python
 
-__revision__ = "test/exitfns.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestCmd
 import TestSCons
 #!/usr/bin/env python
 
-__revision__ = "test/option--.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import os.path

test/option--C.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--C.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--H.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--H.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--I.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--I.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--R.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--R.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--S.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--S.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--W.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--W.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--Y.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--Y.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--cd.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--cd.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--cf.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--cf.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--cs.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--cs.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--la.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--la.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--ld.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--ld.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--lw.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--lw.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--npd.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--npd.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--override.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--override.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--random.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--random.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--wf.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--wf.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string

test/option--wuv.py

 #!/usr/bin/env python
 
-__revision__ = "test/option--wuv.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-b.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-c.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-d.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-e.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-f.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import os.path
 #!/usr/bin/env python
 
-__revision__ = "test/option-h.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-i.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-j.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-k.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-l.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-m.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-n.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import os.path
 #!/usr/bin/env python
 
-__revision__ = "test/option-o.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-p.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-q.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-r.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-s.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import os.path
 #!/usr/bin/env python
 
-__revision__ = "test/option-t.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-u.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-v.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string
 #!/usr/bin/env python
 
-__revision__ = "test/option-w.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
 import string