diff options
author | Nick Clifton <nickc@redhat.com> | 1997-12-16 14:38:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1997-12-16 14:38:21 +0000 |
commit | a3240f68578e136d4104fa49f4e00d15471c672f (patch) | |
tree | d5cd04d4aee251c78ef0dda915799e31a7b37f53 /bfd/.Sanitize | |
parent | 67ae6381f5280445fdd59ef64dc30a68071afeb0 (diff) | |
download | gdb-a3240f68578e136d4104fa49f4e00d15471c672f.zip gdb-a3240f68578e136d4104fa49f4e00d15471c672f.tar.gz gdb-a3240f68578e136d4104fa49f4e00d15471c672f.tar.bz2 |
Added m32rx sanitization.
Diffstat (limited to 'bfd/.Sanitize')
-rw-r--r-- | bfd/.Sanitize | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 288fc0b..c8d8b20 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -485,6 +485,34 @@ else done fi +m32rx_files="ChangeLog archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c" +if ( echo $* | grep keep\-m32rx > /dev/null ) ; then + for i in $m32rx_files ; do + if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping m32rx stuff in $i + fi + fi + done +else + for i in $m32rx_files ; do + if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"m32rx\" from $i... + fi + cp $i new + sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/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 |