]> Git Repo - binutils.git/blobdiff - gas/.Sanitize
* ldfile.c (ldfile_set_output_arch): Make arch const.
[binutils.git] / gas / .Sanitize
index cb0fba5bc6a3a16bf2da497948efb447be1a911e..ee747546019af77d5751afb4b6b5fdd5a642fd7a 100644 (file)
 
 Do-first:
 
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
-       keep_these_too="mpw-config.in mpw-make.in ChangeLog.mpw"
-else
-       lose_these_too="mpw-config.in mpw-make.in ChangeLog.mpw"
-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
@@ -61,6 +55,8 @@ debug.c
 doc
 ecoff.c
 ecoff.h
+emul-target.h
+emul.h
 expr.c
 expr.h
 flonum-copy.c
@@ -73,7 +69,6 @@ gasp.c
 gdbinit.in
 hash.c
 hash.h
-hex-value.c
 input-file.c
 input-file.h
 input-scrub.c
@@ -81,12 +76,18 @@ link.cmd
 listing.c
 listing.h
 literal.c
+macro.c
+macro.h
 messages.c
+mpw-config.in
+mpw-make.in
 obj.h
 output-file.c
 output-file.h
 read.c
 read.h
+sb.c
+sb.h
 stabs.c
 struc-symbol.h
 subsegs.c
@@ -123,7 +124,97 @@ else
                fi
                mv new $f
        done
+       if [ -n "${verbose}" ]; then
+               echo ""
+       fi
 fi
 
+sh3e_files="ChangeLog"
+if ( echo $* | grep keep\-sh3e > /dev/null ) ; then
+       if [ -n "${verbose}" ] ; then
+               echo Keeping sh3e stuff in $sh3e_files.
+       fi
+else
+       if [ -n "${verbose}" ]; then
+               echo -n Cleaning sh3e in `pwd`:
+       fi
+       for f in $sh3e_files ; do
+               if [ -n "${verbose}" ] ; then
+                       echo -n " " $f
+               fi
+               sed -e '/start\-sanitize\-sh3e/,/end\-sanitize\-sh3e/d' -e '/ xl /d' < $f > new
+               if [ -n "${safe}" ] ; then
+                       mv $f .Recover
+               fi
+               mv new $f
+       done
+       if [ -n "${verbose}" ]; then
+               echo ""
+       fi
+fi
+
+rce_files="configure.in as.c configure ChangeLog 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 [ -n "${verbose}" ] ; then
+                               echo Keeping rce stuff in $i
+                       fi
+               fi
+       done
+else
+       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\-rce/,/end-\sanitize\-rce/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
+
+arc_files="ChangeLog configure.in configure 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
+               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.0469 seconds and 4 git commands to generate.