Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
[deliverable/binutils-gdb.git] / ld / .Sanitize
index d2b4184167ef0d1d04901c63452d1af0e54f3344..1ed601f80e7068324975c04c9235d4e46498d0e5 100644 (file)
 
 Do-first:
 
-if ( echo $* | grep keep\-v9 > /dev/null ) ; then
-       keep_these_too=""
-fi
-
-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}"
-else
-       lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${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
@@ -44,15 +28,14 @@ Makefile.in
 NEWS
 README
 TODO
-cdtest-foo.cc
-cdtest-foo.h
-cdtest-bar.cc
-cdtest-main.cc
-cdtest.exp
-config
-config.h
+acconfig.h
+aclocal.m4
+config.in
+configure
 configure.bat
+configure.host
 configure.in
+configure.tgt
 dep-in.sed
 emulparams
 emultempl
@@ -62,6 +45,7 @@ ld.1
 gen-doc.texi
 ld.h
 ld.texinfo
+ldcref.c
 ldctor.c
 ldctor.h
 ldemul.c
@@ -85,33 +69,45 @@ ldver.h
 ldwrite.c
 ldwrite.h
 lexsup.c
+mac-ld.r
+mpw-config.in
+mpw-elfmips.c
+mpw-idtmips.c
+mpw-eppcmac.c
+mpw-esh.c
+mpw-make.sed
 mri.c
 mri.h
 scripttempl
+sysdep.h
 testsuite
 
 Things-to-lose:
 
 Do-last:
 
-echo Looking for signs of \"v9\"...
+arc_files="ChangeLog configure.tgt 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\-v9 > /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 ( 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 * ; do
-               if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
-                       echo Cleaning the \"v9\" out of $i...
+       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\-v9/,/end-\sanitize\-v9/d' < $i > new
+                       sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
@@ -119,24 +115,28 @@ else
        done
 fi
 
-echo Looking for traces of \"mpw\"...
+v850_files="ChangeLog configure.tgt 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\-v850 > /dev/null ) ; then
+       for i in $v850_files ; do
+               if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping v850 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 $v850_files ; do
+               if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"v850\" from $i...
+                       fi
                        cp $i new
-                       sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
+                       sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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
@@ -144,26 +144,98 @@ else
        done
 fi
 
-echo Looking for PowerPC NetWare...
-ppcfiles="configure.in"
-if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
-       if [ -n "${verbose}" ] ; then
-               echo Keeping PowerPC NetWare stuff in $ppcfiles.
-       fi
+r5900_files="ChangeLog configure.tgt"
+
+if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
+       for i in $r5900_files ; do
+               if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping r5900 stuff in $i
+                       fi
+               fi
+       done
 else
-       if [ -n "${verbose}" ]; then
-               echo -n Removing PowerPC NetWare in `pwd`:
-       fi
-       for f in $ppcfiles ; do
-               if [ -n "${verbose}" ] ; then
-                       echo -n " " $f
+       for i in $r5900_files ; do
+               if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"r5900\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/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
-               sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new
-               if [ -n "${safe}" ] ; then
-                       mv $f .Recover
+       done
+fi
+
+tic80_files="ChangeLog configure.tgt Makefile.in"
+
+if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
+       for i in $tic80_files ; do
+               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping tic80 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $tic80_files ; do
+               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"tic80\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/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
-               mv new $f
        done
 fi
 
+d30v_files="ChangeLog configure.tgt Makefile.in"
+
+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
+       fi
+done
+
+#
 # End of file.
This page took 0.026066 seconds and 4 git commands to generate.