Add d30v simulator configuration but sanatize it out.
authorAndrew Cagney <cagney@redhat.com>
Fri, 21 Feb 1997 02:44:57 +0000 (02:44 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 21 Feb 1997 02:44:57 +0000 (02:44 +0000)
ChangeLog
sim/.Sanitize

index f35e947e9de49314ca8735b2d7d1f7061fe2cfe4..8e30da03d88f096d1ba0fbfd873a0f4cf65e72f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
 start-sanitize-d30v
+Sun Feb 16 15:41:09 1997  Andrew Cagney  <cagney@critters.cygnus.com>
+
+       * configure.in (d30v-*): Remove sim directory from list of
+       unsupported d30v directories
+
+end-sanitize-d30v
+start-sanitize-d30v
 Tue Feb 18 17:32:42 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>
 
        * config.sub, configure.in: Add d30v target cpu. 
index 47b4fd5f9b0eb6fd269b99cbbd7fea1575101762..b9b97ade46d65b131e7b95cfbceadace1200ee10 100644 (file)
@@ -36,6 +36,13 @@ else
         lose_these_too="${v850_files} ${lose_these_too}"
 fi
 
+d30v_files="d30v igen"
+if ( echo $* | grep keep\-d30v > /dev/null ) ; then
+        keep_these_too="${d30v_files} ${keep_these_too}"
+else
+        lose_these_too="${d30v_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
@@ -121,6 +128,35 @@ else
                 fi
         done
 fi
+
+d30v_files="configure configure.in 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
+
 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