diff options
author | Steven Knight <knight@baldmt.com> | 2005-04-01 22:58:50 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-04-01 22:58:50 (GMT) |
commit | ebcc7ec5e9125cd6f69cb97df5991015239f5197 (patch) | |
tree | 57e7a2d7d0628b81827df9b05e1cfeafff1c0b04 /bin | |
parent | 71bf8f38553cdaf3a70937b56668f9dfd2d82476 (diff) | |
download | SCons-ebcc7ec5e9125cd6f69cb97df5991015239f5197.zip SCons-ebcc7ec5e9125cd6f69cb97df5991015239f5197.tar.gz SCons-ebcc7ec5e9125cd6f69cb97df5991015239f5197.tar.bz2 |
Store source file and dependency paths relative to the target's directory, not relative to the top-level SConstruct directory.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/restore.sh | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/bin/restore.sh b/bin/restore.sh index 2b7a726..d5dc6c1 100644 --- a/bin/restore.sh +++ b/bin/restore.sh @@ -5,10 +5,33 @@ # send in diffs based on the released source. # -for i in `find src test -name '*.py'`; do +if test "X$*" = "X"; then + DIRS="src test" +else + DIRS="$*" +fi + +for i in `find $DIRS -name '*.py'`; do +ed $i <<EOF +/^__revision__ = /s/= .*/= "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"/p +/Copyright (c) 2001.*SCons Foundation/s/.*/__COPYRIGHT__/p +w +q +EOF +done + +for i in `find $DIRS -name '*.txt'`; do +ed $i <<EOF +/# [^ ]* 0.96.[CD][0-9]* [0-9\/]* [0-9:]* knight$/s/.*/# __FILE__ __REVISION__ __DATE__ __DEVELOPER__/p +/Copyright (c) 2001.*SCons Foundation/s/.*/__COPYRIGHT__/p +w +q +EOF +done + +for i in `find $DIRS -name '*.xml'`; do ed $i <<EOF -/__revision__ = /s/= .*/= "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"/p -/# Copyright (c) 2001/s/.*/# __COPYRIGHT__/p +/^<!-- Copyright (c) 2001.*SCons Foundation -->$/s/.*/<!-- __COPYRIGHT__ -->/p w q EOF |