sanitize law's 15 jul r5900 change
[deliverable/binutils-gdb.git] / gas / .Sanitize
index 77cf3d00e5b37f47af0ba2d286f2948294e86cc4..26e09447f93e1b5400c464f92ecb9ef0505b920a 100644 (file)
 
 Do-first:
 
+lose_these_too=""
+for d in obsolete regress regress.m68k testscripts ; do
+    if [ -d $d ]; then
+       lose_these_too="${lose_these_too} $d"
+    fi
+done
+
 # 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
@@ -27,13 +34,13 @@ CONTRIBUTORS
 COPYING
 ChangeLog
 ChangeLog.1
+Makefile.am
 Makefile.in
 NEWS
-NOTES
-NOTES.config
 README
 README-vms
 acconfig.h
+acinclude.m4
 aclocal.m4
 app.c
 as.c
@@ -42,14 +49,17 @@ atof-generic.c
 bignum-copy.c
 bignum.h
 bit_fix.h
+cgen.c
 cond.c
-conf.in
 config
+config.in
 config-gas.com
 configure
 configure.bat
 configure.in
 debug.c
+dep-in.sed
+depend.c
 doc
 ecoff.c
 ecoff.h
@@ -74,9 +84,14 @@ link.cmd
 listing.c
 listing.h
 literal.c
+itbl-lex.l
+itbl-ops.c
+itbl-ops.h
+itbl-parse.y
 mac-as.r
 macro.c
 macro.h
+makefile.vms
 messages.c
 mpw-config.in
 mpw-make.sed
@@ -88,6 +103,7 @@ read.h
 sb.c
 sb.h
 stabs.c
+stamp-h.in
 struc-symbol.h
 subsegs.c
 subsegs.h
@@ -98,29 +114,84 @@ testsuite
 vmsconf.sh
 write.c
 write.h
-xmalloc.c
 
 Things-to-lose:
 
 Do-last:
 
-arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1"
-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.in configure"
+if ( echo $* | grep keep\-v850e > /dev/null ) ; then
+       for i in $v850_files ; do
+               if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping v850e stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $v850_files ; do
+               if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"v850e\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/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
+
+r5900_files="ChangeLog configure configure.in"
+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
+       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
+       done
+fi
+
+tx19_files="ChangeLog"
+if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
+       for i in $tx19_files ; do
+               if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping arc stuff in $i
+                               echo Keeping tx19 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 $tx19_files ; do
+               if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"arc\" from $i...
+                               echo Removing traces of \"tx19\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
+                       sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -132,22 +203,23 @@ else
        done
 fi
 
-if ( echo $* | grep keep\-gm > /dev/null ) ; then
-       for i in * ; do
-               if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
+tic80_files="ChangeLog configure.in configure"
+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 gm stuff in $i
+                               echo Keeping tic80 stuff in $i
                        fi
                fi
        done
 else
-       for i in * ; do
-               if test ! -d $i && (grep sanitize-gm $i > /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 Removing traces of \"gm\" from $i...
+                               echo Removing traces of \"tic80\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $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...
@@ -159,6 +231,65 @@ else
        done
 fi
 
+d30v_files="ChangeLog configure configure.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
+
+if [ -n "${verbose}" ] ; then
+       echo Processing \"sh4\"...
+fi
+
+sh4_files="ChangeLog"
+if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
+       for i in $sh4_files ; do
+               if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping sh4 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $sh4_files ; do
+               if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"sh4\" from $i...
+                       fi
+                       cp $i new
+                       sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $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
This page took 0.027417 seconds and 4 git commands to generate.