gm_files="mpw-xconfig.in mpw-init.c ChangeLog.gm"
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
+if ( echo $* | grep keep\-gm > /dev/null ) ; then
keep_these_too="${gm_files} ${keep_these_too}"
if [ -n "${verbose}" ] ; then
echo Keeping ${gm_files}
fi
fi
+hpread_files="hpread.c ChangeLog.hpread"
+
+if ( echo $* | grep keep\-hpread > /dev/null ) ; then
+ keep_these_too="${hpread_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${hpread_files}
+ fi
+else
+ lose_these_too="${hpread_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${hpread_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
coredep.c
corelow.c
cp-valprint.c
+cxux-nat.c
dbxread.c
dcache.c
dcache.h
exec.c
expprint.c
expression.h
+f-exp.y
+f-lang.c
+f-lang.h
+f-typeprint.c
+f-valprint.c
findvar.c
fork-child.c
frame.h
gdbcmd.h
gdbcore.h
gdbserver
+gdbtk.c
+gdbtk.tcl
gdbtypes.c
gdbtypes.h
go32-xdep.c
nindy-share
nindy-tdep.c
nlmread.c
-ns32k-opcode.h
ns32k-pinsn.c
ns32km3-nat.c
objfiles.c
objfiles.h
os9kread.c
osfsolib.c
-paread.c
parse.c
parser-defs.h
partial-stab.h
remote-mon.c
remote-nindy.c
remote-os9k.c
+remote-pa.c
remote-sim.c
remote-sim.h
remote-st.c
rs6000-pinsn.c
rs6000-tdep.c
saber.suppress
+ser-e7kpc.c
ser-go32.c
ser-tcp.c
ser-unix.c
signals.h
solib.c
solib.h
+somread.c
source.c
sp64-tdep.c
sparc-nat.c
# Things which are explicitly *not* kept, for now.
-# deblib/ - CVS won't let you blow away directories yet,
-# so this is still around from when Stu checked
-# it in, as part of Lucid support.
# energize - Part of Lucid support.
# energize-patches - Part of Lucid support.
# energize.c - Part of Lucid support.
Things-to-lose:
-deblib
energize
energize-patches
energize.c
done
fi
+echo Removing traces of \"hpread\"...
+
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-hpread > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
+ echo Keeping hpread stuff in $i
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
+ echo Removing traces of \"hpread\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-hpread/,/end-\sanitize\-hpread/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
+fi
+
+
# End of file.