Do-first:
-mpw_files="mpw-config.in mpw-make.in ser-mac.c mac-xdep.c mac-defs.h macgdb.r ChangeLog.mpw"
-
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
- keep_these_too="${mpw_files} ${keep_these_too}"
- if [ -n "${verbose}" ] ; then
- echo Keeping ${mpw_files}
- fi
-else
- lose_these_too="${mpw_files} ${lose_these_too}"
- if [ -n "${verbose}" ] ; then
- echo Deleting ${mpw_files}
- fi
-fi
-
# mswin gdb is not really gdbtk, but is close enough for now.
gdbtk_files="gdbtk.c gdbtk.tcl mswin"
m68k-tdep.c
m88k-nat.c
m88k-tdep.c
+mac-defs.h
+mac-xdep.c
+macgdb.r
main.c
maint.c
mdebugread.c
mipsread.c
monitor.h
monitor.c
+mpw-config.in
+mpw-make.in
news-xdep.c
nindy-share
nindy-tdep.c
saber.suppress
ser-e7kpc.c
ser-go32.c
+ser-mac.c
ser-tcp.c
ser-unix.c
serial.c
Do-last:
-echo Removing traces of \"mpw\"...
-
-# Don't try to clean directories here, as the 'mv' command will fail.
-# Also, grep fails on NFS mounted directories.
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
- for i in * ; do
- if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
- echo Keeping mpw stuff in $i
- fi
- done
-else
- for i in * ; do
- if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
- echo Removing traces of \"mpw\" out of $i...
- cp $i new
- sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/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
-
echo Catering to RMS by removing traces of \"gdbtk\"...
# Don't try to clean directories here, as the 'mv' command will fail.