* gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
[external/binutils.git] / ld / .Sanitize
index 0ffb4fe..6b46075 100644 (file)
 
 Do-first:
 
-mpw_files="mpw-make.in mpw-config.in mpw-em.c ChangeLog.mpw"
-
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
-       keep_these_too="${mpw_files} ${keep_these_too}"
-else
-       lose_these_too="${mpw_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
@@ -36,10 +28,14 @@ Makefile.in
 NEWS
 README
 TODO
-config
-config.h
+acconfig.h
+aclocal.m4
+config.in
+configure
 configure.bat
+configure.host
 configure.in
+configure.tgt
 dep-in.sed
 emulparams
 emultempl
@@ -49,6 +45,7 @@ ld.1
 gen-doc.texi
 ld.h
 ld.texinfo
+ldcref.c
 ldctor.c
 ldctor.h
 ldemul.c
@@ -72,33 +69,45 @@ ldver.h
 ldwrite.c
 ldwrite.h
 lexsup.c
+mac-ld.r
+mpw-config.in
+mpw-emipself.c
+mpw-emipsidt.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 traces of \"mpw\"...
+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\-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\-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-mpw $i > /dev/null) ; then
-                       echo Removing traces of \"mpw\" 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\-mpw/,/end-\sanitize\-mpw/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
@@ -106,24 +115,24 @@ else
        done
 fi
 
-rce_files="configure.in Makefile.in"
+d10v_files="ChangeLog configure.in configure.tgt Makefile.in"
 
-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 ( 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 rce stuff in $i
+                               echo Keeping d10v stuff in $i
                        fi
                fi
        done
 else
-       for i in $rce_files ; do
-               if test ! -d $i && (grep sanitize-rce $i > /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 Removing traces of \"rce\" from $i...
+                               echo Removing traces of \"d10v\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $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...
@@ -135,23 +144,24 @@ else
        done
 fi
 
-arc_files="ChangeLog configure.in configure"
-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
+m32r_files="ChangeLog configure.tgt Makefile.in"
+
+if ( echo $* | grep keep\-m32r > /dev/null ) ; then
+       for i in $m32r_files ; do
+               if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping arc stuff in $i
+                               echo Keeping m32r stuff in $i
                        fi
                fi
        done
 else
-       for i in $arc_files ; do
-               if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+       for i in $m32r_files ; do
+               if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"arc\" from $i...
+                               echo Removing traces of \"m32r\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
+                       sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -163,23 +173,24 @@ else
        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
+v850_files="ChangeLog configure.tgt Makefile.in"
+
+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 arc stuff in $i
+                               echo Keeping v850 stuff in $i
                        fi
                fi
        done
 else
-       for i in $arc_files ; do
-               if test ! -d $i && (grep sanitize-arc $i > /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 Removing traces of \"arc\" from $i...
+                               echo Removing traces of \"v850\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
+                       sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...