* gdb.base/list.exp: Add expect patterns for output from
[deliverable/binutils-gdb.git] / gas / config / .Sanitize
index e4e1f9311149b39c9a2c8019caec2af6f0511ac2..bf151024d99544dc4e156682083ec19925102654 100644 (file)
@@ -1,8 +1,6 @@
-# Sanitize.in for devo.
-# $Id$
-#
+# .Sanitize for devo/gas/config
 
-# 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.
 
 Do-first:
 
-echo Sanitizing `pwd`...
+rce_files="tc-rce.c tc-rce.h rce.mt"
+
+if ( echo $* | grep keep\-rce > /dev/null ) ; then
+       keep_these_too="${rce_files} ${keep_these_too}"
+else
+       lose_these_too="${rce_files} ${lose_these_too}"
+fi
+
+arc_files="tc-arc.c tc-arc.h arc.mt"
+
+if ( echo $* | grep keep\-arc > /dev/null ) ; then
+       keep_these_too="${arc_files} ${keep_these_too}"
+else
+       lose_these_too="${arc_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.
@@ -27,45 +39,56 @@ echo Sanitizing `pwd`...
 
 Things-to-keep:
 
-a.out.h
+aout_gnu.h
+alpha-opcode.h
 atof-ieee.c
+atof-tahoe.c
 atof-vax.c
-coff.gnu.h
-cplus-dem.c
-hmake-a29k
-hmake-cygnus
-hmake-i386
-ho-a29k.h
-ho-ansi.h
-ho-cygnus.h
-ho-decstation.h
-ho-generic.h
-ho-hpux.h
-ho-i386.h
-ho-rs6000.h
-ho-sun3.h
-ho-sun386.h
-ho-sun4.h
-ho-sunos.h
-ho-sysv.h
-ho-vax.h
+go32.cfg
+h8300.mt
+h8500.mt
+i386coff.mt
+m68k.mt
+m68kcoff.mt
+m88k-opcode.h
+m88kcoff.mt
+mips-big.mt
+mips-lit.mt
 obj-aout.c
 obj-aout.h
-obj-bfd-sunos.c
-obj-bfd-sunos.h
 obj-bout.c
 obj-bout.h
 obj-coff.c
 obj-coff.h
+obj-ecoff.c
+obj-ecoff.h
+obj-elf.c
+obj-elf.h
 obj-generic.c
 obj-generic.h
-ranlib.h
-signame.h
-stab.h
+obj-hp300.c
+obj-hp300.h
+obj-ieee.c
+obj-ieee.h
+obj-som.c
+obj-som.h
+obj-vms.c
+obj-vms.h
+sh.mt
 tc-a29k.c
 tc-a29k.h
+tc-alpha.c
+tc-alpha.h
+tc-arm.c
+tc-arm.h
 tc-generic.c
 tc-generic.h
+tc-h8300.c
+tc-h8300.h
+tc-h8500.c
+tc-h8500.h
+tc-hppa.c
+tc-hppa.h
 tc-i386.c
 tc-i386.h
 tc-i860.c
@@ -75,46 +98,73 @@ tc-i960.h
 tc-m68851.h
 tc-m68k.c
 tc-m68k.h
+tc-m88k.c
+tc-m88k.h
+tc-mips.c
+tc-mips.h
 tc-ns32k.c
 tc-ns32k.h
+tc-ppc.c
+tc-ppc.h
+tc-sh.c
+tc-sh.h
 tc-sparc.c
 tc-sparc.h
+tc-tahoe.c
+tc-tahoe.h
 tc-vax.c
 tc-vax.h
+tc-w65.c
+tc-w65.h
+tc-z8k.c
+tc-z8k.h
+te-386bsd.h
+te-delta.h
 te-dpx2.h
 te-generic.h
+te-go32.h
+te-hp300.h
+te-hppa.h
+te-i386aix.h
 te-ic960.h
-te-motor.h
+te-linux.h
+te-lynx.h
+te-mach.h
+te-nbsd.h
+te-nbsd532.h
+te-pc532mach.h
+te-ppcnw.h
 te-sco386.h
-te-sparc.h
 te-sun3.h
-te-unisoft.h
-tmake-m68k
+te-sysv32.h
 vax-inst.h
-vms
+vms-conf.h
+w65.mt
+z8k.mt
+
+Things-to-lose:
 
 Do-last:
 
-if ( echo $* | grep keep\-v9 > /dev/null ) ; then
-       echo Keeping v9 stuff in tc-sparc.c.
+i960xl_files=tc-i960.c
+if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
+       if [ -n "${verbose}" ] ; then
+               echo Keeping i960xl stuff in $i960xl_files.
+       fi
 else
-       echo Cleaning tc-sparc.c...
-       sed '/start\-sanitize/,/end-sanitize/d' < tc-sparc.c > new
-       mv new tc-sparc.c
+       if [ -n "${verbose}" ]; then
+               echo -n Cleaning i960xl in `pwd`:
+       fi
+       for f in $i960xl_files ; do
+               if [ -n "${verbose}" ] ; then
+                       echo -n " " $f
+               fi
+               grep -v XL < $f > new
+               if [ -n "${safe}" ] ; then
+                       mv $f .Recover
+               fi
+               mv new $f
+       done
 fi
 
-echo Done in `pwd`.
-
-#
-#
-# $Log$
-# Revision 1.2  1991/09/02 01:03:38  rich
-# Correct a few things.
-#
-# Revision 1.1  1991/05/23  17:09:03  rich
-# Initial revision
-#
-#
-#
-
 # End of file.
This page took 0.029347 seconds and 4 git commands to generate.