sanitize law's 15 jul r5900 change
[deliverable/binutils-gdb.git] / gas / .Sanitize
index 2dcb7b3e99152131ece57f164c187d11fce4e68d..26e09447f93e1b5400c464f92ecb9ef0505b920a 100644 (file)
@@ -1,4 +1,4 @@
-# .Sanitize for devo/gas
+# .Sanitize for devo/gas.
 
 # Each directory to survive its way into a release will need a file
 # like this one called "./.Sanitize".  All keyword lines must exist,
 
 # The lines between the "Do-first:" line and the "Things-to-keep:"
 # line are executed as a /bin/sh shell script before anything else is
-# done in this 
+# done in this directory.
 
 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
-
-if ( echo $* | grep keep\-gm > /dev/null ) ; then
-       keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}"
-else
-       lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}"
-fi
+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.
@@ -35,20 +30,18 @@ fi
 
 Things-to-keep:
 
-.gdbinit
 CONTRIBUTORS
 COPYING
 ChangeLog
-ChangeLog.v9
+ChangeLog.1
+Makefile.am
 Makefile.in
 NEWS
-NOTES
-NOTES.config
 README
-README-quirks
 README-vms
-README.coff
-README.rich
+acconfig.h
+acinclude.m4
+aclocal.m4
 app.c
 as.c
 as.h
@@ -56,15 +49,22 @@ atof-generic.c
 bignum-copy.c
 bignum.h
 bit_fix.h
+cgen.c
 cond.c
 config
+config.in
 config-gas.com
+configure
 configure.bat
 configure.in
 debug.c
+dep-in.sed
+depend.c
 doc
 ecoff.c
 ecoff.h
+emul-target.h
+emul.h
 expr.c
 expr.h
 flonum-copy.c
@@ -74,9 +74,9 @@ flonum.h
 frags.c
 frags.h
 gasp.c
+gdbinit.in
 hash.c
 hash.h
-hex-value.c
 input-file.c
 input-file.h
 input-scrub.c
@@ -84,14 +84,26 @@ link.cmd
 listing.c
 listing.h
 literal.c
-make-gas.com
+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
 obj.h
 output-file.c
 output-file.h
 read.c
 read.h
+sb.c
+sb.h
 stabs.c
+stamp-h.in
 struc-symbol.h
 subsegs.c
 subsegs.h
@@ -102,36 +114,188 @@ testsuite
 vmsconf.sh
 write.c
 write.h
-xmalloc.c
 
 Things-to-lose:
 
 Do-last:
 
-if ( echo $* | grep keep-v9 > /dev/null ) ; then
-       if [ -n "${verbose}" ] ; then
-               echo Keeping `pwd`/ChangeLog.v9.
-               echo Keeping v9 code in `pwd`/configure.in.
-       fi
+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
-       if [ -n "${verbose}" ] ; then
-               echo Removing `pwd`/ChangeLog.v9
-       fi
-       if [ -n "${safe}" ] ; then
-               mv ChangeLog.v9 .Recover
-       else
-               rm ChangeLog.v9
-       fi
-       if [ -n "${verbose}" ] ; then
-               echo Cleaning v9 code from `pwd`/configure.in.
-       fi
-       grep -v v9 < configure.in > new
-       if [ -n "${safe}" ]; then
-               mv configure.in .Recover
-       fi
-       mv -f new configure.in
+       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 tx19 stuff in $i
+                       fi
+               fi
+       done
+else
+       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 \"tx19\" from $i...
+                       fi
+                       cp $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...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
+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 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
+       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
+               echo '***' Some mentions of Sanitize are still left in $i! 1>&2
+       fi
+done
 
 #
 # End of file.
This page took 0.025474 seconds and 4 git commands to generate.