sanitize law's 15 jul r5900 change
[deliverable/binutils-gdb.git] / gas / .Sanitize
index 392b964587dce0d1c570d1d1ef4ae162073c5e45..26e09447f93e1b5400c464f92ecb9ef0505b920a 100644 (file)
@@ -1,8 +1,6 @@
-# Sanitize.in for devo.
-# $Id$
-#
+# .Sanitize for devo/gas.
 
-# Each directory to survive it's way into a release will need a file
+# Each directory to survive its way into a release will need a file
 # like this one called "./.Sanitize".  All keyword lines must exist,
 # and must exist in the order specified by this file.  Each directory
 # in the tree will be processed, top down, in the following order.
 
 # 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:
 
+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.
@@ -26,20 +30,18 @@ Do-first:
 
 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
@@ -47,13 +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
@@ -62,130 +73,229 @@ flonum-mult.c
 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
 link.cmd
 listing.c
 listing.h
-make-gas.com
+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
 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
 symbols.c
 symbols.h
 tc.h
-testscripts
 testsuite
+vmsconf.sh
 write.c
 write.h
-xmalloc.c
+
+Things-to-lose:
 
 Do-last:
 
-if ( echo $* | grep keep-v9 > /dev/null ) ; then
-       echo Keeping ChangeLog.v9.
+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
-       echo Removing ChangeLog.v9
-       if [ -n "${safe}" ] ; then
-               mv ChangeLog.v9 .Recover
-       else
-               rm ChangeLog.v9
-       fi
+       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
 
-#
-#
-# $Log$
-# Revision 1.17  1993/04/22 06:39:01  raeburn
-# version.c is gone
-#
-# Revision 1.16  1993/03/29  13:26:44  raeburn
-# First crack at a test suite.
-#
-# Revision 1.15  1993/02/13  10:12:16  zoo
-# removing excess verbosity
-#
-# Revision 1.14  1993/01/08  14:40:59  raeburn
-# keep config-gas.com.
-# if purging v9, discard ChangeLog.v9, keep otherwise.
-#
-# Revision 1.13  1992/12/08  08:05:32  raeburn
-# updated for added/deleted files
-#
-# Revision 1.12  1992/07/28  18:58:12  gumby
-# Don't save obsolete/
-#
-# Revision 1.11  1992/03/13  16:04:15  sac
-# Fri Mar 13 08:03:03 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
-#
-#      * flonum-const.c: renamed flonum-konst.c to stop dos name
-#      conflict.
-#
-# Revision 1.10  1992/02/22  20:44:46  sac
-#      * app.c: MRI compatibility - allow single quote to start a string.
-#      * as.c: fix typo recently introduced.
-#      * as.h : Don't include aout/reloc.h - it's not right for COFF!
-#      * expr.c: Much rewriting, to accomodate MRI syntax for
-#      expressions. Also easier to read now.
-#      * listing.c: Put back defuns
-#      * read.c: modified to accept MRI syntax, put back listing pseudo
-#      ops so that an assembler built with NO_LISTING ignores list ops
-#      rather than pukes.
-#      * write.c, write.h: fixs - only keep a reloc type in a fix if the target
-#      machine is a SPARC or a 29K.
-#      * config/obj-aout.c: added s_sect pseudo op
-#      * config/obj-coffbfd.c: lints, set the filehdr flags right and
-#      fill in the timestamp.
-#      * config/obj-coffbfd.h: Since we don't include aout/reloc.h
-#      anymore, define all the relocs which the tc-<x> bit will use so we
-#      can translate from them to the coff types.
-#      * config/tc-a29k.c: reloc_type isn't ane enum any more
-#      * config/tc-m68k.c: Added NO_RELOC definition.
-#
-# Now compiles for sparc aout, 68k aout (MRI and MIT syntax),
-# 29k coff.
-#
-# So far works as replacement for sparc and 68k /bin/as.
-#
-# Revision 1.9  1992/02/17  15:52:52  rich
-# fighting bitrot in a major way
-#
-# Revision 1.8  1992/02/14  00:21:34  pesch
-# It's OK to keep the doc subdirectory, really.
-#
-# Revision 1.7  1992/02/13  10:13:19  rich
-# clean up Sanitize for gas
-#
-# Revision 1.6  1992/01/17  20:54:32  rich
-# keep listing*
-#
-# Revision 1.5  1991/12/12  03:28:12  sac
-# Added makefile.dos configure.dos
-#
-# Revision 1.4  1991/12/09  11:58:44  tiemann
-# Keep a.out.gnu.h.
-#
-# Revision 1.3  1991/10/10  11:58:04  rich
-# updating
-#
-# Revision 1.2  1991/09/02  01:05:04  rich
-# Correcting some things.
-#
-# Revision 1.1  1991/05/23  17:18:12  rich
-# Initial revision
-#
-#
-#
+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.026888 seconds and 4 git commands to generate.