aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-08-14 19:34:58 +0000
committerNick Clifton <nickc@redhat.com>1997-08-14 19:34:58 +0000
commit58036ae4c9512e830c709bcf4f8839f40431767b (patch)
tree6030e06fe17fe0d7ca8a467d28eb6191fd51e9bd /gas/config
parent72d8a21508667477eda37692a00238eba8bde93a (diff)
downloadgdb-58036ae4c9512e830c709bcf4f8839f40431767b.zip
gdb-58036ae4c9512e830c709bcf4f8839f40431767b.tar.gz
gdb-58036ae4c9512e830c709bcf4f8839f40431767b.tar.bz2
Tidied up the sanitization.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/.Sanitize35
1 files changed, 28 insertions, 7 deletions
diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize
index 1b810dd..3338e40 100644
--- a/gas/config/.Sanitize
+++ b/gas/config/.Sanitize
@@ -248,8 +248,17 @@ fi
v850e_files="tc-v850.c tc-v850.h"
if ( echo $* | grep keep\-v850e > /dev/null ) ; then
+ if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
+ for i in $v850e_files ; do
+ if test ! -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850e and v850eq stuff in $i
+ fi
+ fi
+ done
+ else
for i in $v850e_files ; do
- if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if test ! -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"v850eq\" from $i...
fi
@@ -264,10 +273,11 @@ if ( echo $* | grep keep\-v850e > /dev/null ) ; then
mv new $i
fi
done
+ fi
else
if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
for i in $v850e_files ; do
- if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if test ! -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping v850e and v850eq stuff in $i
fi
@@ -275,22 +285,33 @@ else
done
else
for i in $v850e_files ; do
- if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if test ! -r $i && (grep sanitize-v850e $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"v850e\" from $i...
fi
cp $i new
sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
- cp new newer
- sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < new > newer
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...
fi
mv $i .Recover
fi
- mv newer $i
- rm new
+ mv new $i
+ fi
+ if test ! -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850eq\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/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