aboutsummaryrefslogtreecommitdiff
path: root/ld/.Sanitize
diff options
context:
space:
mode:
authorMichael Tiemann <tiemann@cygnus>1994-11-24 22:02:18 +0000
committerMichael Tiemann <tiemann@cygnus>1994-11-24 22:02:18 +0000
commit5fa60968605904d23a6ce37901c9710295baf0b0 (patch)
tree12d33b2a3b3efff2e0732e9f10733da49aafc588 /ld/.Sanitize
parent9f554efd623851a218c9469065952d6014c7624a (diff)
downloadgdb-5fa60968605904d23a6ce37901c9710295baf0b0.zip
gdb-5fa60968605904d23a6ce37901c9710295baf0b0.tar.gz
gdb-5fa60968605904d23a6ce37901c9710295baf0b0.tar.bz2
Recognize and sanitize r16 as a target.
Diffstat (limited to 'ld/.Sanitize')
-rw-r--r--ld/.Sanitize36
1 files changed, 36 insertions, 0 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize
index 3ef50a7..b01e83e 100644
--- a/ld/.Sanitize
+++ b/ld/.Sanitize
@@ -106,4 +106,40 @@ 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.