diff options
author | K. Richard Pixley <rich@cygnus> | 1991-09-04 02:51:18 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1991-09-04 02:51:18 +0000 |
commit | 5f62d65b5a5081d4dbc9f2945db1c2b03e23e6c1 (patch) | |
tree | 39845db42e6cbbc905d96593867b052b3ac81e64 /include | |
parent | 78375cd35472b6ac811f6d250f4509586922f2dd (diff) | |
download | gdb-5f62d65b5a5081d4dbc9f2945db1c2b03e23e6c1.zip gdb-5f62d65b5a5081d4dbc9f2945db1c2b03e23e6c1.tar.gz gdb-5f62d65b5a5081d4dbc9f2945db1c2b03e23e6c1.tar.bz2 |
Adding "recover"'ability.
Diffstat (limited to 'include')
-rw-r--r-- | include/.Sanitize | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/include/.Sanitize b/include/.Sanitize index 1be68f1..3838134 100644 --- a/include/.Sanitize +++ b/include/.Sanitize @@ -17,7 +17,6 @@ Do-first: -recover="aout64.h sparc-opcode.h" echo Sanitizing `pwd`... # All files listed between the "Things-to-keep:" line and the @@ -79,24 +78,22 @@ wait.h Do-last: -if ( echo $* | grep keep\-v9 > /dev/null ) ; then - echo Keeping v9 in sparc-opcode.h. -else - echo Sanitizing v9 in sparc-opcode.h. - rm -f new - grep -v v9 sparc-opcode.h > new - rm sparc-opcode.h - mv new sparc-opcode.h -fi +v9dirty="sparc-opcode.h aout64.h" if ( echo $* | grep keep\-v9 > /dev/null ) ; then - echo Keeping v9 in aout64.h. + echo Keeping v9 in ${v9dirty} else - echo Sanitizing v9 in aout64.h. - rm -f new - grep -v v9 aout64.h > new - rm aout64.h - mv new aout64.h + for i in ${v9dirty} ; do + echo Sanitizing v9 in $i + rm -f new + grep -v v9 $i > new + if [ -n "${safe}" ] ; then + mv $i .Recover + else + rm sparc-opcode.h + fi + mv new $i + done fi echo Done in `pwd`. @@ -104,7 +101,10 @@ echo Done in `pwd`. # # # $Log$ -# Revision 1.11 1991/09/02 21:21:47 rich +# Revision 1.12 1991/09/04 02:51:18 rich +# Adding "recover"'ability. +# +# Revision 1.11 1991/09/02 21:21:47 rich # Recover the editted files. # # Revision 1.10 1991/08/29 00:34:45 gnu |