Thu Aug 1 17:08:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
authorMartin Hunt <hunt@redhat.com>
Fri, 2 Aug 1996 00:22:58 +0000 (00:22 +0000)
committerMartin Hunt <hunt@redhat.com>
Fri, 2 Aug 1996 00:22:58 +0000 (00:22 +0000)
* configure.in (d10v-*-*): Added D10V simulator.

sim/.Sanitize
sim/configure.in

index e76cdd5..ff0bd92 100644 (file)
 
 Do-first:
 
+d10v_files="d10v"
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+        keep_these_too="${d10v_files} ${keep_these_too}"
+else
+        lose_these_too="${d10v_files} ${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
@@ -42,4 +49,37 @@ Things-to-lose:
 
 Do-last:
 
+d10v_files="d10v"
+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 $d10v_files ; 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
+for i in * ; do
+        if test ! -d $i && (grep sanitize $i > /dev/null) ; then
+                echo '***' Some mentions of Sanitize are still left in $i! 1>&2
+        fi
+done 
+
 # End of file.
index d3eec69..004f014 100644 (file)
@@ -45,6 +45,9 @@ esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi])
 
 case "${target}" in
   arm*-*-*)            sim_target=arm ;;
+# start-sanitize-d10v
+  d10v-*-*)            sim_target=d10v ;;
+# end-sanitize-d10v
   h8300*-*-*)          sim_target=h8300 ;;
   h8500-*-*)           sim_target=h8500 ;;
   mips*-*-*)           sim_target=mips ;;