Add basic d10v support
authorMichael Meissner <gnu@the-meissners.org>
Mon, 1 Jul 1996 17:34:10 +0000 (17:34 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Mon, 1 Jul 1996 17:34:10 +0000 (17:34 +0000)
.Sanitize

index 2022c09873993ff25dc35919e9c90259fe3e7db9..562fb1741280842595b2b2623cebbc6ec1b0b8f1 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
@@ -237,6 +237,39 @@ else
        done
 fi
 
+if [ -n "${verbose}" ] ; then
+       echo Processing \"d10v\"...
+fi
+
+d10v_files="ChangeLog config.sub"
+
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+       for i in $d10v_files ; do
+               if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping d10v stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"d10v\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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
+
 rce_files="config.sub"
 
 if ( echo $* | grep keep\-rce > /dev/null ) ; then