sanitize for vr5400
authorIan Lance Taylor <ian@airs.com>
Fri, 24 Oct 1997 16:39:38 +0000 (16:39 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 24 Oct 1997 16:39:38 +0000 (16:39 +0000)
.Sanitize

index c304e52..4f3d4ee 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
@@ -410,6 +410,35 @@ if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
        mv new Makefile.in
 fi
 
+vr5400_files="ChangeLog config.sub"
+
+if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
+       for i in $vr5400_files ; do
+               if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping vr5400 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"vr5400\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/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
+
 # Do this check LAST!
 for i in * ; do
        if test ! -d $i && (grep sanitize $i > /dev/null) ; then