Things-to-keep:
-INSTALL
Makefile.in
+README
README.configure
bison
bfd
binutils
config
+config.sub
configure
configure.in
+cvs
+diff
+emacs
gas
gcc
gdb
+gdbm
gnulib
+grep
include
ld
libiberty
-libg++
+make
+prms
+rcs
readline
+texinfo
Do-last:
-echo Done in `pwd`.
+echo Looking for signs of \"v9\"...
-#
-#
-# $Log$
-# Revision 1.5 1991/07/25 16:11:27 tiemann
-# Don't eliminate libg++. Jimmy Hoffa disappeared before libg++ was
-# even conceived.
-#
-# Revision 1.4 1991/07/24 22:25:50 steve
-# *** empty log message ***
-#
-# Revision 1.3 1991/05/23 22:21:19 rich
-# added bfd, binutils, ld, gdb, gcc.
-#
-# Revision 1.2 1991/05/23 21:15:10 rich
-# Added bfd.
-#
-# Revision 1.1 1991/05/23 17:32:34 rich
-# Initial revision
-#
-# Revision 1.1 1991/05/23 17:18:12 rich
-# Initial revision
-#
-#
-#
+# 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
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
+ echo Keeping v9 stuff 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...
+ cp $i new
+ sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
+echo Looking for signs of \"life\"...
-# End of file.
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-life > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
+ echo Keeping life alive in $i
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
+ echo Beating the \"life\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-life/,/end-\sanitize\-life/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
+if grep 'sanitize' * ; then
+ echo Some mentions of Sanitize are still left in the sources!
+fi
+
+echo Done in `pwd`.