Sanitize away sh4 stuff for now.
authorFred Fish <fnf@specifix.com>
Sat, 21 Jun 1997 03:48:48 +0000 (03:48 +0000)
committerFred Fish <fnf@specifix.com>
Sat, 21 Jun 1997 03:48:48 +0000 (03:48 +0000)
gdb/.Sanitize

index 105475c72fb68fa5c35a41e858a964ebbabcadf2..06d8765c5d4d0b85943ef45b96e2060c7b772f8c 100644 (file)
@@ -567,6 +567,33 @@ else
        done
 fi
 
+if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping sh4 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"sh4\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/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
+
 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
        for i in * ; do
                if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then