Do-first:
-gdbtk_files="README.GDBTK gdbtk.c gdbtcl gdbtcl2 gdbtk.tcl"
+gdbtk_files="ChangeLog-gdbtk README.GDBTK gdbtk.c gdbtcl2 gdb.rc gdbtool.ico"
if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
lose_these_too="${gdbtk_files} ${lose_these_too}"
fi
fi
+sky_files="txvu-tdep.c"
+
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
+ keep_these_too="${sky_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${sky_files}
+ fi
+else
+ lose_these_too="${sky_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${sky_files}
+ fi
+fi
+
+java_files="jv-exp.y jv-lang.c jv-lang.h jv-typeprint.c jv-valprint.c"
+
+if ( echo $* | grep keep\-java > /dev/null ) ; then
+ keep_these_too="${java_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${java_files}
+ fi
+else
+ lose_these_too="${java_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${java_files}
+ fi
+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.
# Directories listed in this section will have their own Sanitize
ChangeLog-94
ChangeLog-95
ChangeLog-96
+ChangeLog-97
Makefile.in
NEWS
README
a29k-tdep.c
a68v-nat.c
abug-rom.c
-aclocal.m4
acconfig.h
+aclocal.m4
alpha-nat.c
alpha-tdep.c
altos-xdep.c
dbxread.c
dcache.c
dcache.h
-debugify.h
debugify.c
+debugify.h
defs.h
delta68-nat.c
demangle.c
dsrec.c
dst.h
dstread.c
+dve3900-rom.c
dwarf2read.c
dwarfread.c
elfread.c
environ.c
environ.h
eval.c
-exec.c
exc_request.defs
+exec.c
expprint.c
expression.h
f-exp.y
findvar.c
fork-child.c
frame.h
-gdb_stat.h
-gdb_string.h
gdb-stabs.h
gdb.1
gdb.gdb
+gdb_stat.h
+gdb_string.h
gdba.el
gdbcmd.h
gdbcore.h
irix4-nat.c
irix5-nat.c
isi-xdep.c
-jv-exp.y
-jv-lang.c
-jv-lang.h
-jv-valprint.c
-jv-typeprint.c
kdb-start.c
language.c
language.h
m88k-nat.c
m88k-tdep.c
mac-defs.h
-mac-xdep.c
mac-gdb.r
mac-nat.c
+mac-xdep.c
main.c
maint.c
mdebugread.c
mips-nat.c
mips-tdep.c
mipsm3-nat.c
-mipsv4-nat.c
mipsread.c
+mipsv4-nat.c
mn10200-tdep.c
mn10300-tdep.c
mon960-rom.c
-monitor.h
monitor.c
+monitor.h
mpw-config.in
mpw-make.sed
msg.defs
notify.defs
ns32k-tdep.c
ns32km3-nat.c
+ns32knbsd-nat.c
objfiles.c
objfiles.h
ocd.c
parse.c
parser-defs.h
partial-stab.h
-ppcbug-rom.c
ppc-bdm.c
+ppcbug-rom.c
printcmd.c
process_reply.defs
procfs.c
ptx4-nat.c
pyr-tdep.c
pyr-xdep.c
+rdi-share
remote-adapt.c
remote-array.c
remote-bug.c
+remote-d10v.c
remote-e7000.c
remote-eb.c
remote-es.c
remote-nindy.c
remote-nrom.c
remote-os9k.c
+remote-rdi.c
remote-rdp.c
remote-sds.c
remote-sim.c
remote-vxsparc.c
remote.c
reply_mig_hack.awk
+rom68k-rom.c
rs6000-nat.c
rs6000-tdep.c
-rom68k-rom.c
saber.suppress
scm-exp.c
scm-lang.c
Things-to-lose:
HOW_TO_RELEASE
+gdbcfgxref
Do-last:
done
fi
-if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
+if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
for i in * ; do
- if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping sh4 stuff in $i
+ echo Keeping vr4320 stuff in $i
fi
fi
done
else
for i in * ; do
- if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"sh4\" from $i...
+ echo Removing traces of \"vr4320\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $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...
done
fi
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping sky stuff in $i
+ fi
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"sky\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/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 ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
for i in * ; do
if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
done
fi
+if ( echo $* | grep keep\-ide > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ide stuff in $i
+ fi
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"ide\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-ide/,/end-\sanitize\-ide/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 ( echo $* | grep keep\-mswin > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping mswin stuff in $i
+ fi
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"mswin\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-mswin/,/end-\sanitize\-mswin/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 ( echo $* | grep keep\-java > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping java stuff in $i
+ fi
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"java\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-java/,/end-\sanitize\-java/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
+
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