binutils-gdb/gdb/config/.Sanitize
John Gilmore f48dd41c6a Sanitize away simulators unless asked to keep-sim.
This is to remove them from the GDB net release til ready for prime time.
1993-02-18 08:10:17 +00:00

162 lines
2.6 KiB
Plaintext

# Each directory to survive it's 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.
# 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:
# 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:
3b1.mh
3b1.mt
a29k-kern.mt
a29k-udi.mt
a29k.mt
altos.mh
altos.mt
amix.mh
amix.mt
apollo68b.mh
apollo68v.mh
arm.mh
arm.mt
bigmips.mh
bigmips.mt
convex.mh
convex.mt
decstation.mh
decstation.mt
delta88.mh
delta88.mt
es1800.mt
go32.mh
h8300hms.mt
hp300bsd.mh
hp300bsd.mt
hp300hpux.mh
hp300hpux.mt
hppabsd.mh
hppabsd.mt
hppahpux.mh
hppahpux.mt
i386aout.mt
i386bsd.mh
i386bsd.mt
i386mach.mh
i386sco.mh
i386sco4.mh
i386sol2.mh
i386sol2.mt
i386v.mh
i386v.mt
i386v32.mh
i386v4.mh
i386v4.mt
irix3.mh
irix3.mt
irix4.mh
isi.mh
isi.mt
linux.mh
linux.mt
littlemips.mh
littlemips.mt
m68k-noun.mt
m68k-un.mt
m88k.mh
m88k.mt
merlin.mh
merlin.mt
ncr3000.mh
ncr3000.mt
news.mh
news.mt
news1000.mh
nindy960.mt
none.mh
none.mt
np1.mh
np1.mt
os68k.mt
pn.mh
pn.mt
pyramid.mh
pyramid.mt
rs6000.mh
rs6000.mt
rtbsd.mh
sparc-noun.mt
sparc-un.mt
st2000.mt
sun2os3.mh
sun2os3.mt
sun2os4.mh
sun2os4.mt
sun386.mh
sun386.mt
sun3os3.mh
sun3os3.mt
sun3os4.mh
sun3os4.mt
sun4os4.mh
sun4os4.mt
sun4sol2.mh
sun4sol2.mt
symmetry.mh
symmetry.mt
tahoe.mh
tahoe.mt
ultra3.mh
ultra3.mt
umax.mh
umax.mt
vax.mt
vaxbsd.mh
vaxult.mh
vxworks68.mt
vxworks960.mt
Do-last:
echo Stimulating away the simulator...
if ( echo $* | grep keep\-sim > /dev/null ) ; then
echo Keeping simulator in h8300hms.mt
else
for i in h8300hms.mt z8ksim.mt; do
if test -f $i ; then
echo Tickling the \"sim\" out of $i...
sed -e 's| remote-sim.o .*||' \
-e 's| and H8 simulator||' \
-e 's| Z8000 simulator| Z8000|' \
-e 's| remote-z8k.o ../sim/z8k/libsim.a||' \
<$i >new
if grep sim new ; then
echo '***' Not funny. "Didn't work."
else
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
echo Caching $i in .Recover...
mv $i .Recover
fi
mv new $i
fi
fi
done
fi
# End of file.