aboutsummaryrefslogtreecommitdiff
path: root/.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 /.Sanitize
parentd94aca1affb15af8374bcb002f6a52fb724c9ccd (diff)
downloadfsf-binutils-gdb-5c680afdc4ad38f0003d859eee11cafa2409ad0e.zip
fsf-binutils-gdb-5c680afdc4ad38f0003d859eee11cafa2409ad0e.tar.gz
fsf-binutils-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 '.Sanitize')
-rw-r--r--.Sanitize29
1 files changed, 29 insertions, 0 deletions
diff --git a/.Sanitize b/.Sanitize
index 26787c6..402d926 100644
--- a/.Sanitize
+++ b/.Sanitize
@@ -207,6 +207,35 @@ else
done
fi
+r16_files = "config.sub"
+
+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