aboutsummaryrefslogtreecommitdiff
path: root/gas/.Sanitize
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-12-03 22:11:25 +0000
committerStan Shebs <shebs@codesourcery.com>1995-12-03 22:11:25 +0000
commit204c73d82ef36dc28b7edb8ecacda61d637e3cac (patch)
tree53f8f7c17a75fc894a1e07a57718541654c32b96 /gas/.Sanitize
parenta56c9325ec05cfe8c3d83cfcf6516fbf5c711be6 (diff)
downloadgdb-204c73d82ef36dc28b7edb8ecacda61d637e3cac.zip
gdb-204c73d82ef36dc28b7edb8ecacda61d637e3cac.tar.gz
gdb-204c73d82ef36dc28b7edb8ecacda61d637e3cac.tar.bz2
Edit out GM-specific bits from files.
Diffstat (limited to 'gas/.Sanitize')
-rw-r--r--gas/.Sanitize27
1 files changed, 27 insertions, 0 deletions
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