diff options
author | Steven Knight <knight@baldmt.com> | 2003-09-15 12:03:51 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-09-15 12:03:51 (GMT) |
commit | f36ff530132ecfe7941f80d2d6e5f03f75decf41 (patch) | |
tree | 6934b9a121c17c02f89c9886d77dd877feb56eee /bin | |
parent | 3ab7670a45179b7a09eabc219842f6c224ad35da (diff) | |
download | SCons-f36ff530132ecfe7941f80d2d6e5f03f75decf41.zip SCons-f36ff530132ecfe7941f80d2d6e5f03f75decf41.tar.gz SCons-f36ff530132ecfe7941f80d2d6e5f03f75decf41.tar.bz2 |
Correct __COPYRIGHT__ and __revision__ lines in files. Add missing copyright notices. Fix some portability problems with new Tool files.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/restore.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/restore.sh b/bin/restore.sh new file mode 100644 index 0000000..2b7a726 --- /dev/null +++ b/bin/restore.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env sh +# +# Simple hack script to restore __revision__ and __COPYRIGHT_ lines +# to what gets checked in to source. This comes in handy when people +# send in diffs based on the released source. +# + +for i in `find src test -name '*.py'`; do +ed $i <<EOF +/__revision__ = /s/= .*/= "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"/p +/# Copyright (c) 2001/s/.*/# __COPYRIGHT__/p +w +q +EOF +done |