1994-01-04 21:18:15 +00:00
|
|
|
# .Sanitize for devo/gas/config
|
1991-05-23 17:10:40 +00:00
|
|
|
|
1994-01-04 21:18:15 +00:00
|
|
|
# Each directory to survive its way into a release will need a file
|
1991-05-23 17:10:40 +00:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Hash started lines like this one are comments and will be deleted
|
|
|
|
# before anything else is done. Blank lines will also be squashed
|
|
|
|
# out.
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
Do-first:
|
|
|
|
|
1997-09-22 01:06:25 +00:00
|
|
|
if [ -d vms ]; then
|
|
|
|
lose_these_too="vms ${lose_these_too}"
|
|
|
|
fi
|
|
|
|
|
1997-02-19 02:47:03 +00:00
|
|
|
d30v_files="tc-d30v.c tc-d30v.h"
|
|
|
|
|
|
|
|
if ( echo $* | grep keep\-d30v > /dev/null ) ; then
|
|
|
|
keep_these_too="${d30v_files} ${keep_these_too}"
|
|
|
|
else
|
|
|
|
lose_these_too="${d30v_files} ${lose_these_too}"
|
|
|
|
fi
|
|
|
|
|
1996-12-28 05:59:26 +00:00
|
|
|
tic80_files="tc-tic80.c tc-tic80.h"
|
|
|
|
|
|
|
|
if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
|
|
|
|
keep_these_too="${tic80_files} ${keep_these_too}"
|
|
|
|
else
|
|
|
|
lose_these_too="${tic80_files} ${lose_these_too}"
|
|
|
|
fi
|
1996-08-21 23:37:04 +00:00
|
|
|
|
1998-01-28 10:15:09 +00:00
|
|
|
sky_files="tc-dvp.c tc-dvp.h"
|
1997-12-22 17:55:19 +00:00
|
|
|
|
|
|
|
if ( echo $* | grep keep\-sky > /dev/null ) ; then
|
|
|
|
keep_these_too="${sky_files} ${keep_these_too}"
|
|
|
|
else
|
|
|
|
lose_these_too="${sky_files} ${lose_these_too}"
|
|
|
|
fi
|
|
|
|
|
1991-05-23 17:10:40 +00:00
|
|
|
# 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
|
|
|
|
# called. Directories not listed will be removed in their entirety
|
|
|
|
# with rm -rf.
|
|
|
|
|
|
|
|
Things-to-keep:
|
|
|
|
|
1992-02-27 18:52:18 +00:00
|
|
|
aout_gnu.h
|
1991-05-23 17:10:40 +00:00
|
|
|
atof-ieee.c
|
1992-12-08 09:30:28 +00:00
|
|
|
atof-tahoe.c
|
1991-05-23 17:10:40 +00:00
|
|
|
atof-vax.c
|
1994-11-04 21:43:00 +00:00
|
|
|
go32.cfg
|
1997-02-26 04:33:08 +00:00
|
|
|
e-i386coff.c
|
|
|
|
e-i386elf.c
|
1995-05-12 00:04:35 +00:00
|
|
|
e-mipsecoff.c
|
|
|
|
e-mipself.c
|
1997-02-11 02:07:57 +00:00
|
|
|
itbl-mips.h
|
* config/m68k-parse.y: New file: bison grammar for m68k operands,
including support for Motorola syntax.
* config/m68k-parse.h: New file; definitions shared between
m68k-parse.y and tc-m68k.c.
* config/tc-m68k.c: Include m68k-parse.h.
(enum operand_type): Move to m68k-parse.h, where it is named
m68k_operand_type. Rename all uses. Rearrange somewhat. Add
FPREG. Rename AOFF to DISP. Rename AINDX to BASE. Rename APODX
to POST. Rename APRDX to PRE. Remove AMIND. Rename MSCR to
CONTROL. Remove DINDR.
(struct m68k_exp): Move to m68k-parse.h. Remove e_beg, e_end and
e_seg fields. Rename e_exp to exp. Rename e_siz to size, and
change type to enum m68k_size. Change all uses.
(enum _register): Move to m68k-parse.h, where it is named
m68k_register. Rename all uses. Add ZDATA0-7 and ZADDR0-7.
(struct m68k_op): Move to m68k-parse.h. Change all fields.
(seg): Don't define.
(add_exp): Remove.
(FAIL, OK): Remove.
(m68k_reg_parse): Move to m68k-parse.y, and rewrite.
(SKIP_WHITE, SKIP_W): Remove.
(try_moto_index, try_index): Remove.
(m68k_ip_op): Move to m68k-parse.y, and rewrite to use grammar.
(main): Remove obsolete test function.
(m68k_ip): Extensive changes to use new grammar.
(get_regs): Remove.
(crack_operand): m68k_ip_op now returns 0 on success.
(init_table): Add ssp, zd0-7 and za0-7.
(md_assemble): Make er const. Correct loop over operands when
looking for error message.
(md_begin): Set alt_notend_table for '(' and '@'.
(get_num): Expression is already parsed. Don't set seg.
* configure.in: If cpu_type is m68k, put m68k-parse.o in
extra-objects.
* configure: Rebuild.
* Makefile.in (DISTSTUFF): Add m68k-parse.c.
(BISON): Use ../bison/bison if it exists.
(BISONFLAGS): Define as empty.
(TARG_CPU_DEP_m68k): Depend upon $(srcdir)/config/m68k-parse.h.
(m68k-parse.c, m68k-parse.o): New targets.
1995-08-08 02:36:10 +00:00
|
|
|
m68k-parse.h
|
|
|
|
m68k-parse.y
|
1992-07-23 18:23:44 +00:00
|
|
|
m88k-opcode.h
|
1991-05-23 17:10:40 +00:00
|
|
|
obj-aout.c
|
|
|
|
obj-aout.h
|
|
|
|
obj-bout.c
|
|
|
|
obj-bout.h
|
|
|
|
obj-coff.c
|
|
|
|
obj-coff.h
|
1993-03-09 16:12:44 +00:00
|
|
|
obj-ecoff.c
|
|
|
|
obj-ecoff.h
|
1993-02-08 19:24:09 +00:00
|
|
|
obj-elf.c
|
|
|
|
obj-elf.h
|
1996-08-08 16:42:41 +00:00
|
|
|
obj-evax.c
|
|
|
|
obj-evax.h
|
1991-05-23 17:10:40 +00:00
|
|
|
obj-generic.c
|
|
|
|
obj-generic.h
|
1993-05-06 02:03:00 +00:00
|
|
|
obj-hp300.c
|
|
|
|
obj-hp300.h
|
1991-11-06 11:53:16 +00:00
|
|
|
obj-ieee.c
|
|
|
|
obj-ieee.h
|
1995-05-12 00:04:35 +00:00
|
|
|
obj-multi.c
|
|
|
|
obj-multi.h
|
1993-10-30 21:55:00 +00:00
|
|
|
obj-som.c
|
|
|
|
obj-som.h
|
1992-12-08 09:30:28 +00:00
|
|
|
obj-vms.c
|
|
|
|
obj-vms.h
|
1991-05-23 17:10:40 +00:00
|
|
|
tc-a29k.c
|
|
|
|
tc-a29k.h
|
1994-01-28 01:37:02 +00:00
|
|
|
tc-alpha.c
|
|
|
|
tc-alpha.h
|
1997-09-18 18:15:14 +00:00
|
|
|
tc-arc.c
|
|
|
|
tc-arc.h
|
1994-09-09 18:35:11 +00:00
|
|
|
tc-arm.c
|
|
|
|
tc-arm.h
|
1997-02-27 23:34:14 +00:00
|
|
|
tc-d10v.c
|
|
|
|
tc-d10v.h
|
1991-05-23 17:10:40 +00:00
|
|
|
tc-generic.c
|
|
|
|
tc-generic.h
|
1991-11-06 11:53:16 +00:00
|
|
|
tc-h8300.c
|
|
|
|
tc-h8300.h
|
1993-02-04 20:47:48 +00:00
|
|
|
tc-h8500.c
|
|
|
|
tc-h8500.h
|
1993-05-06 02:03:00 +00:00
|
|
|
tc-hppa.c
|
|
|
|
tc-hppa.h
|
1991-05-23 17:10:40 +00:00
|
|
|
tc-i386.c
|
|
|
|
tc-i386.h
|
|
|
|
tc-i860.c
|
|
|
|
tc-i860.h
|
|
|
|
tc-i960.c
|
|
|
|
tc-i960.h
|
1997-04-05 00:09:41 +00:00
|
|
|
tc-m32r.c
|
|
|
|
tc-m32r.h
|
1991-05-23 17:10:40 +00:00
|
|
|
tc-m68851.h
|
|
|
|
tc-m68k.c
|
|
|
|
tc-m68k.h
|
1992-07-23 18:23:44 +00:00
|
|
|
tc-m88k.c
|
|
|
|
tc-m88k.h
|
1991-11-06 11:53:16 +00:00
|
|
|
tc-mips.c
|
|
|
|
tc-mips.h
|
1996-10-03 16:42:22 +00:00
|
|
|
tc-mn10200.c
|
|
|
|
tc-mn10200.h
|
|
|
|
tc-mn10300.c
|
|
|
|
tc-mn10300.h
|
1991-05-23 17:10:40 +00:00
|
|
|
tc-ns32k.c
|
|
|
|
tc-ns32k.h
|
1994-02-05 05:35:11 +00:00
|
|
|
tc-ppc.c
|
|
|
|
tc-ppc.h
|
1993-04-27 01:32:09 +00:00
|
|
|
tc-sh.c
|
|
|
|
tc-sh.h
|
1991-11-11 23:36:39 +00:00
|
|
|
tc-sparc.c
|
1992-02-13 10:13:24 +00:00
|
|
|
tc-sparc.h
|
1992-12-08 09:42:06 +00:00
|
|
|
tc-tahoe.c
|
|
|
|
tc-tahoe.h
|
1998-02-03 00:17:20 +00:00
|
|
|
tc-tic30.c
|
|
|
|
tc-tic30.h
|
1997-09-21 00:19:41 +00:00
|
|
|
tc-v850.c
|
|
|
|
tc-v850.h
|
1991-05-23 17:10:40 +00:00
|
|
|
tc-vax.c
|
|
|
|
tc-vax.h
|
1995-01-16 00:42:14 +00:00
|
|
|
tc-w65.c
|
|
|
|
tc-w65.h
|
1992-08-25 22:12:54 +00:00
|
|
|
tc-z8k.c
|
|
|
|
tc-z8k.h
|
1993-05-06 02:03:00 +00:00
|
|
|
te-386bsd.h
|
1996-01-31 19:06:17 +00:00
|
|
|
te-aux.h
|
1994-11-09 19:57:37 +00:00
|
|
|
te-delta.h
|
1995-11-20 18:48:32 +00:00
|
|
|
te-delt88.h
|
1991-05-23 17:10:40 +00:00
|
|
|
te-dpx2.h
|
1997-02-14 23:40:49 +00:00
|
|
|
te-dynix.h
|
1991-05-23 17:10:40 +00:00
|
|
|
te-generic.h
|
1994-11-04 21:43:00 +00:00
|
|
|
te-go32.h
|
1993-05-06 02:03:00 +00:00
|
|
|
te-hp300.h
|
|
|
|
te-hppa.h
|
1992-07-23 18:23:44 +00:00
|
|
|
te-i386aix.h
|
1991-05-23 17:10:40 +00:00
|
|
|
te-ic960.h
|
1993-05-06 02:03:00 +00:00
|
|
|
te-linux.h
|
1997-02-27 02:42:38 +00:00
|
|
|
te-lnews.h
|
1993-09-28 20:20:27 +00:00
|
|
|
te-lynx.h
|
1994-02-18 22:04:40 +00:00
|
|
|
te-mach.h
|
1995-11-14 04:46:32 +00:00
|
|
|
te-macos.h
|
1995-05-12 00:04:35 +00:00
|
|
|
te-multi.h
|
1994-11-04 16:44:58 +00:00
|
|
|
te-nbsd.h
|
1994-10-13 15:45:43 +00:00
|
|
|
te-nbsd532.h
|
1994-07-26 22:20:48 +00:00
|
|
|
te-pc532mach.h
|
1995-05-12 21:26:01 +00:00
|
|
|
te-pe.h
|
1994-11-04 21:43:00 +00:00
|
|
|
te-ppcnw.h
|
1996-02-14 21:37:16 +00:00
|
|
|
te-psos.h
|
1996-06-29 22:20:57 +00:00
|
|
|
te-riscix.h
|
* configure.in (sparc-*-aout): Set `em'.
* configure: Regenerated.
* config/te-sparcaout.h: New file.
* config/tc-sparc.h (TARGET_BYTES_BIG_ENDIAN): Define.
Ifdef TE_SPARCOUT define TARGET_FORMAT and SPARC_BIENDIAN.
* config/tc-sparc.c (INSN_BIG_ENDIAN): New macro.
(SPECIAL_CASE_{SETSW,SETX}): Define.
({NOP,OR,FMOVS,SETHI,SLLX,SRA}_INSN): Define.
(md_begin): Delete setting of `target_big_endian'.
(output_insn): New function.
(md_assemble): Rewrite. Add `setx' support.
(sparc_ip): Handle `0' operand char. Recognize setuw, setsw, setx
special cases.
(md_atof): Add little endian support.
(md_number_to_chars): Likewise.
(md_apply_fix): Likewise.
(md_longopts): Recognize -EL,-EB ifdef SPARC_BIENDIAN.
(md_parse_option): Likewise.
(md_show_usage): Print -EL, -EB ifdef SPARC_BIENDIAN.
1996-09-06 23:05:12 +00:00
|
|
|
te-sparcaout.h
|
1991-05-23 17:10:40 +00:00
|
|
|
te-sun3.h
|
1997-02-21 17:00:45 +00:00
|
|
|
te-svr4.h
|
1992-02-13 10:13:24 +00:00
|
|
|
te-sysv32.h
|
1991-05-23 17:10:40 +00:00
|
|
|
vax-inst.h
|
1994-09-21 22:18:06 +00:00
|
|
|
vms-conf.h
|
1996-08-08 16:42:41 +00:00
|
|
|
vms-a-conf.h
|
1991-05-23 17:10:40 +00:00
|
|
|
|
1993-05-27 06:44:29 +00:00
|
|
|
Things-to-lose:
|
|
|
|
|
1991-05-23 17:10:40 +00:00
|
|
|
Do-last:
|
|
|
|
|
1997-02-11 13:26:34 +00:00
|
|
|
r5900_files="tc-mips.c"
|
|
|
|
|
|
|
|
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 * ; 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
|
1997-08-14 02:03:34 +00:00
|
|
|
sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
|
1997-02-11 13:26:34 +00:00
|
|
|
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
|
|
|
|
|
1997-10-31 23:21:44 +00:00
|
|
|
vr5400_files="tc-mips.c"
|
|
|
|
if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
|
|
|
|
for i in $vr5400_files ; do
|
|
|
|
if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Keeping vr5400 stuff in $i
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in * ; do
|
|
|
|
if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Removing traces of \"vr5400\" from $i...
|
|
|
|
fi
|
|
|
|
cp $i new
|
|
|
|
sed '/start\-sanitize\-vr5400/,/end\-sanitize\-vr5400/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
|
|
|
|
|
1997-09-10 04:53:18 +00:00
|
|
|
tx19_files="tc-mips.c"
|
|
|
|
|
|
|
|
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 * ; 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
|
|
|
|
|
1997-10-29 21:40:09 +00:00
|
|
|
tx49_files="ChangeLog tc-mips.c"
|
|
|
|
|
|
|
|
if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
|
|
|
|
for i in $tx49_files ; do
|
|
|
|
if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Keeping tx49 stuff in $i
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in * ; do
|
|
|
|
if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Removing traces of \"tx49\" from $i...
|
|
|
|
fi
|
|
|
|
cp $i new
|
|
|
|
sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/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
|
|
|
|
|
1997-02-27 18:59:07 +00:00
|
|
|
tic80_files="obj-coff.h"
|
|
|
|
|
|
|
|
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 * ; 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
|
1997-08-14 02:03:34 +00:00
|
|
|
sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
|
1997-02-27 18:59:07 +00:00
|
|
|
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
1997-08-29 19:03:06 +00:00
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Caching $i in .Recover...
|
|
|
|
fi
|
1997-02-27 18:59:07 +00:00
|
|
|
mv $i .Recover
|
|
|
|
fi
|
|
|
|
mv new $i
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
1997-08-14 02:03:34 +00:00
|
|
|
v850e_files="tc-v850.c tc-v850.h"
|
|
|
|
if ( echo $* | grep keep\-v850e > /dev/null ) ; then
|
1997-09-21 17:44:16 +00:00
|
|
|
for i in $v850e_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
|
1997-08-14 02:03:34 +00:00
|
|
|
for i in $v850e_files ; do
|
1997-09-10 21:00:03 +00:00
|
|
|
if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
|
1997-08-14 19:34:58 +00:00
|
|
|
if [ -n "${verbose}" ] ; then
|
1997-09-10 21:00:03 +00:00
|
|
|
echo Removing traces of \"v850e\" from $i...
|
1997-08-14 19:34:58 +00:00
|
|
|
fi
|
|
|
|
cp $i new
|
1997-09-10 21:00:03 +00:00
|
|
|
sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
|
1997-08-14 19:34:58 +00:00
|
|
|
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
|
1997-08-14 02:03:34 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
1997-02-11 13:26:34 +00:00
|
|
|
|
1997-12-16 14:54:08 +00:00
|
|
|
m32rx_files="tc-m32r.c tc-m32r.h"
|
|
|
|
if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
|
|
|
|
for i in $m32rx_files ; do
|
1998-01-26 20:42:15 +00:00
|
|
|
if test ! -d $i && (grep sanitize\-m32rx $i > /dev/null) ; then
|
1997-12-16 14:54:08 +00:00
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Keeping m32rx stuff in $i
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in $m32rx_files ; do
|
1998-01-26 20:42:15 +00:00
|
|
|
if test -r $i && (grep sanitize\-m32rx $i > /dev/null) ; then
|
1997-12-16 14:54:08 +00:00
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Removing traces of \"m32rx\" from $i...
|
|
|
|
fi
|
|
|
|
cp $i new
|
|
|
|
sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
|
|
|
|
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
1998-01-26 20:42:15 +00:00
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Caching $i in .Recover...
|
|
|
|
fi
|
|
|
|
mv $i .Recover
|
|
|
|
fi
|
|
|
|
mv new $i
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then
|
|
|
|
for i in $m32rx_files ; do
|
|
|
|
if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Keeping m32rx stuff in $i
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in $m32rx_files ; do
|
|
|
|
if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Removing traces of \"m32rx\" from $i...
|
|
|
|
fi
|
|
|
|
cp $i new
|
|
|
|
sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new
|
|
|
|
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
1998-01-15 18:46:32 +00:00
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Caching $i in .Recover...
|
|
|
|
fi
|
|
|
|
mv $i .Recover
|
|
|
|
fi
|
|
|
|
mv new $i
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
1998-03-03 16:45:13 +00:00
|
|
|
vr4320_files="tc-mips.c"
|
|
|
|
if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
|
|
|
|
for i in $vr4320_files ; do
|
|
|
|
if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Keeping vr4320 stuff in $i
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in $vr4320_files ; do
|
|
|
|
if test -r $i && (grep sanitize-vr4320 $i > /dev/null) ; then
|
|
|
|
if [ -n "${verbose}" ] ; then
|
|
|
|
echo Removing traces of \"vr4320\" from $i...
|
|
|
|
fi
|
|
|
|
cp $i new
|
|
|
|
sed '/start\-sanitize\-vr4320/,/end\-sanitize\-vr4320/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
|
|
|
|
|
1997-12-16 14:54:08 +00:00
|
|
|
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
|
|
|
|
|
1991-05-23 17:10:40 +00:00
|
|
|
# End of file.
|