]> Git Repo - binutils.git/blobdiff - ld/.Sanitize
* gdb.base/a2-run.exp: Change argument to istarget from
[binutils.git] / ld / .Sanitize
index da8143ea904a5c662cf597dbfd524d5425481b2e..c2ecdee3ba287d554ea692e96ea074ea62deb606 100644 (file)
 
 Do-first:
 
-if ( echo $* | grep keep\-v9 > /dev/null ) ; then
-       keep_these_too=""
-fi
+mpw_files="mpw-make.in mpw-config.in mpw-emipsidt.c ChangeLog.mpw"
 
 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
-       keep_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${keep_these_too}"
-else
-       lose_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${lose_these_too}"
-fi
-
-if ( echo $* | grep keep\-gm > /dev/null ) ; then
-       keep_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${keep_these_too}"
+       keep_these_too="${mpw_files} ${keep_these_too}"
 else
-       lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${lose_these_too}"
+       lose_these_too="${mpw_files} ${lose_these_too}"
 fi
 
 # All files listed between the "Things-to-keep:" line and the
@@ -44,11 +36,6 @@ Makefile.in
 NEWS
 README
 TODO
-cdtest-foo.cc
-cdtest-foo.h
-cdtest-bar.cc
-cdtest-main.cc
-cdtest.exp
 config
 config.h
 configure.bat
@@ -94,22 +81,22 @@ Things-to-lose:
 
 Do-last:
 
-echo Looking for signs of \"v9\"...
+echo Looking for traces of \"mpw\"...
 
 # Don't try to clean directories here, as the 'mv' command will fail.
 # Also, grep fails on NFS mounted directories.
-if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+if ( echo $* | grep keep\-mpw > /dev/null ) ; then
        for i in * ; do
-               if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
-                       echo Keeping v9 stuff in $i
+               if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
+                       echo Keeping mpw traces in $i
                fi
        done
 else
        for i in * ; do
-               if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
-                       echo Cleaning the \"v9\" out of $i...
+               if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
+                       echo Removing traces of \"mpw\" out of $i...
                        cp $i new
-                       sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
+                       sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                echo Caching $i in .Recover...
                                mv $i .Recover
@@ -119,24 +106,57 @@ else
        done
 fi
 
-echo Looking for traces of \"mpw\"...
+rce_files="configure.in Makefile.in"
 
-# Don't try to clean directories here, as the 'mv' command will fail.
-# Also, grep fails on NFS mounted directories.
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
-       for i in * ; do
-               if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
-                       echo Keeping mpw traces in $i
+if ( echo $* | grep keep\-rce > /dev/null ) ; then
+       for i in $rce_files ; do
+               if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping rce stuff in $i
+                       fi
                fi
        done
 else
-       for i in * ; do
-               if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
-                       echo Removing traces of \"mpw\" out of $i...
+       for i in $rce_files ; do
+               if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"rce\" from $i...
+                       fi
                        cp $i new
-                       sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
+                       sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
-                               echo Caching $i in .Recover...
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
+arc_files="ChangeLog configure.in Makefile.in"
+
+if ( echo $* | grep keep\-arc > /dev/null ) ; then
+       for i in $arc_files ; do
+               if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping arc stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $arc_files ; do
+               if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"arc\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
@@ -144,4 +164,11 @@ else
        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.
This page took 0.032219 seconds and 4 git commands to generate.