Do-first:
+arc_files="arc-tdep.c remote-arc.c"
+
+if ( echo $* | grep keep\-arc > /dev/null ) ; then
+ keep_these_too="${arc_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${arc_files}
+ fi
+else
+ lose_these_too="${arc_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${arc_files}
+ fi
+fi
+
# mswin gdb is not really gdbtk, but is close enough for now.
-gdbtk_files="gdbtk.c gdbtk.tcl mswin"
+gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl mswin"
if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
lose_these_too="${gdbtk_files} ${lose_these_too}"
TODO
a29k-tdep.c
a68v-nat.c
+aclocal.m4
alpha-nat.c
alpha-tdep.c
altos-xdep.c
complaints.c
complaints.h
config
+configure
configure.in
convex-tdep.c
convex-xdep.c
coredep.c
corelow.c
cp-valprint.c
+cpu32bug-rom.c
cxux-nat.c
dbxread.c
dcache.c
gcc.patch
gdb-stabs.h
gdb.1
+gdb.gdb
gdba.el
gdbcmd.h
gdbcore.h
hppa-tdep.c
hppab-nat.c
hppah-nat.c
+hppam3-nat.c
hpread.c
i386-stub.c
i386-tdep.c
pyr-xdep.c
regex.c
regex.h
-rem-multi.shar
remote-adapt.c
+remote-array.c
remote-bug.c
remote-e7000.c
remote-eb.c
remote-mips.c
remote-mm.c
remote-nindy.c
+remote-nrom.c
remote-os9k.c
remote-pa.c
remote-sim.c
remote-vx29k.c
remote-vx68.c
remote-vx960.c
-remote-z8k.c
+remote-vxmips.c
+remote-vxsparc.c
remote.c
rs6000-nat.c
rs6000-tdep.c
xcoffread.c
xcoffsolib.c
xcoffsolib.h
+xmodem.c
+xmodem.h
z8k-tdep.c
-
# Things which are explicitly *not* kept, for now.
-# energize - Part of Lucid support.
-# energize-patches - Part of Lucid support.
-# energize.c - Part of Lucid support.
-# energize.h - Part of Lucid support.
-# remote-sa.sparc.c - Remote target for a standalone SPARC, using
-# the FORTH console ROMs. We never got the paperwork
-# straight, since Sun's lawyers messed with the
-# FSF contract and RMS didn't accept the changes.
-# Written at SunLabs.
-# state.c - Not used at the moment, keep for reference (fnf)
-# state.h - Not used at the moment, keep for reference (fnf)
Things-to-lose:
-energize
-energize-patches
-energize.c
-energize.h
-remote-mon.c
-remote-sa.sparc.c
ser-go32-para.c
-state.c
-state.h
-arc-tdep.c
-remote-arc.c
Do-last:
-echo Catering to RMS by removing traces of \"gdbtk\"...
-
# Don't try to clean directories here, as the 'mv' command will fail.
# Also, grep fails on NFS mounted directories.
-if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then
+if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
+ echo Catering to RMS by removing traces of \"gdbtk\"...
for i in * ; do
if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
- echo Keeping gdbtk stuff in $i
+ echo Removing traces of \"gdbtk\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ echo Caching $i in .Recover...
+ mv $i .Recover
+ fi
+ mv new $i
fi
done
else
+ echo Leaving \"gdbtk\" in the sources...
for i in * ; do
if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
- echo Removing traces of \"gdbtk\" out of $i...
+ echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
cp $i new
- sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
+ sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
echo Caching $i in .Recover...
mv $i .Recover