Do-first:
-if ( echo $* | grep keep\-v9 > /dev/null ) ; then
- keep_these_too=""
-fi
+mpw_files="mpw-make.in mpw-config.in mpw-emipsidt.c ChangeLog.mpw"
if ( echo $* | grep keep\-mpw > /dev/null ) ; then
- keep_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${keep_these_too}"
-else
- lose_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${lose_these_too}"
-fi
-
-if ( echo $* | grep keep\-gm > /dev/null ) ; then
- keep_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${keep_these_too}"
+ keep_these_too="${mpw_files} ${keep_these_too}"
else
- lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${lose_these_too}"
+ lose_these_too="${mpw_files} ${lose_these_too}"
fi
# All files listed between the "Things-to-keep:" line and the
NEWS
README
TODO
-cdtest-foo.cc
-cdtest-foo.h
-cdtest-bar.cc
-cdtest-main.cc
-cdtest.exp
config
config.h
configure.bat
Do-last:
-echo Looking for signs of \"v9\"...
+echo Looking for 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\-v9 > /dev/null ) ; then
+if ( echo $* | grep keep\-mpw > /dev/null ) ; then
for i in * ; do
- if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
- echo Keeping v9 stuff in $i
+ if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
+ echo Keeping mpw traces in $i
fi
done
else
for i in * ; do
- if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
- echo Cleaning the \"v9\" out of $i...
+ 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\-v9/,/end-\sanitize\-v9/d' < $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
done
fi
-echo Looking for traces of \"mpw\"...
+rce_files="configure.in Makefile.in"
-# 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 traces in $i
+if ( echo $* | grep keep\-rce > /dev/null ) ; then
+ for i in $rce_files ; do
+ if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping rce stuff in $i
+ fi
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...
+ for i in $rce_files ; do
+ if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"rce\" from $i...
+ fi
cp $i new
- sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
+ sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
- echo Caching $i in .Recover...
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
+arc_files="ChangeLog configure.in Makefile.in"
+
+if ( echo $* | grep keep\-arc > /dev/null ) ; then
+ for i in $arc_files ; do
+ if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping arc stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $arc_files ; do
+ if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"arc\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
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
+ fi
+done
+
+#
# End of file.