From 204c73d82ef36dc28b7edb8ecacda61d637e3cac Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Sun, 3 Dec 1995 22:11:25 +0000 Subject: [PATCH] Edit out GM-specific bits from files. --- gas/.Sanitize | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gas/.Sanitize b/gas/.Sanitize index b36fb2d..edaefc7 100644 --- a/gas/.Sanitize +++ b/gas/.Sanitize @@ -212,6 +212,33 @@ else done fi +if ( echo $* | grep keep\-gm > /dev/null ) ; then + for i in * ; do + if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping gm stuff in $i + fi + fi + done +else + for i in * ; do + if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"gm\" from $i... + fi + cp $i new + sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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 + fi + 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 -- 2.7.4