aboutsummaryrefslogtreecommitdiff
path: root/gas/.Sanitize
diff options
context:
space:
mode:
authorMichael Tiemann <tiemann@cygnus>1994-11-24 21:36:00 +0000
committerMichael Tiemann <tiemann@cygnus>1994-11-24 21:36:00 +0000
commit5c680afdc4ad38f0003d859eee11cafa2409ad0e (patch)
tree27f6f666ffc2a986f76e3ff01bb1384ebd04525a /gas/.Sanitize
parentd94aca1affb15af8374bcb002f6a52fb724c9ccd (diff)
downloadgdb-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 'gas/.Sanitize')
-rw-r--r--gas/.Sanitize34
1 files changed, 34 insertions, 0 deletions
diff --git a/gas/.Sanitize b/gas/.Sanitize
index cb0fba5..78022e5 100644
--- a/gas/.Sanitize
+++ b/gas/.Sanitize
@@ -125,5 +125,39 @@ else
done
fi
+r16_files = "configure.in"
+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.