Sanitize out D30V stuff.
authorMartin Hunt <hunt@redhat.com>
Thu, 27 Feb 1997 01:55:05 +0000 (01:55 +0000)
committerMartin Hunt <hunt@redhat.com>
Thu, 27 Feb 1997 01:55:05 +0000 (01:55 +0000)
gas/testsuite/.Sanitize
gas/testsuite/gas/.Sanitize

index ccaf1a0e8e4cc4987eda9593aa20e7a350d30e63..55ffdbe7cb4b3b0438803957f4cee015246a725f 100644 (file)
@@ -132,4 +132,32 @@ else
        done
 fi
 
+d30v_files="ChangeLog"
+if ( echo $* | grep keep\-d30v > /dev/null ) ; then
+       for i in $d30v_files ; do
+               if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping d30v stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $d30v_files ; do
+               if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"d30v\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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
+
 # End of file.
index 13c2adb6cbf4696ba405c8f83c6900c0d4dd8d9a..8a87e27b7d15a2a337d5cfcc6b768771781db31a 100644 (file)
@@ -35,6 +35,12 @@ else
        lose_these_too="v850 ${lose_these_too}"
 fi
 
+if ( echo $* | grep keep\-d30v > /dev/null ) ; then
+       keep_these_too="d30v ${keep_these_too}"
+else
+       lose_these_too="d30v ${lose_these_too}"
+fi
+
 # All files listed between the "Things-to-keep:" line and the
 # "Files-to-sed:" line will be kept.  All other files will be removed.
 # Directories listed in this section will have their own Sanitize