diff options
author | Michael Tiemann <tiemann@cygnus> | 1994-11-24 21:36:00 +0000 |
---|---|---|
committer | Michael Tiemann <tiemann@cygnus> | 1994-11-24 21:36:00 +0000 |
commit | 5c680afdc4ad38f0003d859eee11cafa2409ad0e (patch) | |
tree | 27f6f666ffc2a986f76e3ff01bb1384ebd04525a /bfd/.Sanitize | |
parent | d94aca1affb15af8374bcb002f6a52fb724c9ccd (diff) | |
download | gdb-5c680afdc4ad38f0003d859eee11cafa2409ad0e.zip gdb-5c680afdc4ad38f0003d859eee11cafa2409ad0e.tar.gz gdb-5c680afdc4ad38f0003d859eee11cafa2409ad0e.tar.bz2 |
Fix .Sanitize scrips so that r16 is truly scrubbed out.
Also, report errors if any traces of sanitize remain after sanitizing.
Diffstat (limited to 'bfd/.Sanitize')
-rw-r--r-- | bfd/.Sanitize | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 3cbe36b..3391b0a 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -220,7 +220,7 @@ Things-to-lose: Do-last: -mpwfiles="coffswap.h" +mpwfiles="ecoffswap.h coffswap.h" if ( echo $* | grep keep\-mpw > /dev/null ) ; then if [ -n "${verbose}" ] ; then echo Keeping mpw stuff in $mpwfiles. @@ -263,4 +263,38 @@ else done fi +r16_files = "ChangeLog archures.c config.bfd configure.in targets.c" +if ( echo $* | grep keep\-r16 > /dev/null ) ; then + for i in r16_files ; do + if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping r16 stuff in $i + fi + fi + done +else + for i in r16_files ; do + if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"r16\" from $i... + fi + cp $i new + sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + if [ -n "${verbose}" ] ; then + echo Caching $i in .Recover... + fi + mv $i .Recover + fi + mv new $i + fi + done +fi + +for i in * ; do + if test ! -d $i && (grep sanitize $i > /dev/null) ; then + echo '***' Some mentions of Sanitize are still left in $i! 1>&2 + fi +done + # End of file. |