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 | c378212a5904028315760269a52272a3eb025dca (patch) | |
tree | 57e7a2d7d0628b81827df9b05e1cfeafff1c0b04 /bin | |
parent | b4e1ccf877aecd44b8d865a06c57dd950e3344ae (diff) | |
download | SCons-c378212a5904028315760269a52272a3eb025dca.zip SCons-c378212a5904028315760269a52272a3eb025dca.tar.gz SCons-c378212a5904028315760269a52272a3eb025dca.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 |