* cfg-ml-com.in (sh-*-*): Add sh3e support.
authorJ.T. Conklin <jtc@acorntoolworks.com>
Wed, 6 Sep 1995 21:02:59 +0000 (21:02 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Wed, 6 Sep 1995 21:02:59 +0000 (21:02 +0000)
Plus sanitize foo.

.Sanitize
cfg-ml-com.in

index 86ea31e9230936f859266981566e5dc90b569350..92a587038fff8b2c3ce3ff850515925a3e3ace03 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
@@ -289,6 +289,35 @@ else
        done
 fi
 
+sh3e_files="ChangeLog cfg-ml-com.in"
+if ( echo $* | grep keep\-sh3e > /dev/null ) ; then
+       for i in $sh3e_files ; do
+               if test ! -d $i && (grep sanitize-sh3e $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping sh3e stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $sh3e_files ; do
+               if test ! -d $i && (grep sanitize-sh3e $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"sh3e\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-sh3e/,/end-\sanitize\-sh3e/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 lose\-gdbtk > /dev/null ) ; then
        echo Catering to RMS by removing traces of \"gdbtk\"...
        if [ -n "${verbose}" ] ; then
index c24d3426d6d25f9c41cc1f58d2f66b8dbc924d80..6cbfdc1cbac7a74066685b3ec13240a02125b078 100644 (file)
@@ -90,6 +90,9 @@ h8500-*-*)
        ;;
 sh-*-*)
        multidirs="ml"
+# start-sanitize-sh3e
+       multidirs="ml m3e"
+# end-sanitize-sh3e
        ;;
 mips*-*-*)
        # Note that not all of these will be built for a particular