aboutsummaryrefslogtreecommitdiff
path: root/include/opcode/.Sanitize
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-08-15 15:50:13 +0000
committerIan Lance Taylor <ian@airs.com>1997-08-15 15:50:13 +0000
commitd1a6b493b8ebad5ad5a933f0f62e09f7891388bd (patch)
tree352e8162afd69a17ceb9b12d067d7a5af4188ff7 /include/opcode/.Sanitize
parentcfb9ba14c3f45bd4cdfabe697f7b964ac46c0fae (diff)
downloadgdb-d1a6b493b8ebad5ad5a933f0f62e09f7891388bd.zip
gdb-d1a6b493b8ebad5ad5a933f0f62e09f7891388bd.tar.gz
gdb-d1a6b493b8ebad5ad5a933f0f62e09f7891388bd.tar.bz2
fix v850 sanitization
Diffstat (limited to 'include/opcode/.Sanitize')
-rw-r--r--include/opcode/.Sanitize42
1 files changed, 22 insertions, 20 deletions
diff --git a/include/opcode/.Sanitize b/include/opcode/.Sanitize
index 6c7ef9c..4a3ed8d 100644
--- a/include/opcode/.Sanitize
+++ b/include/opcode/.Sanitize
@@ -115,23 +115,24 @@ else
done
fi
-v850_files="ChangeLog"
-if ( echo $* | grep keep\-v850 > /dev/null ) ; then
- for i in $v850_files ; do
- if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
+v850e_files="ChangeLog v850.h"
+
+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 v850 stuff in $i
+ echo Keeping v850eq stuff in $i
fi
fi
done
else
- for i in $v850_files ; do
- if test ! -d $i && (grep sanitize-v850 $i > /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 Removing traces of \"v850\" from $i...
+ echo Removing traces of \"v850eq\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $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...
@@ -143,10 +144,9 @@ else
done
fi
-v850e_files="ChangeLog v850.h"
if ( echo $* | grep keep\-v850e > /dev/null ) ; then
for i in $v850e_files ; do
- if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping v850e stuff in $i
fi
@@ -154,7 +154,7 @@ if ( echo $* | grep keep\-v850e > /dev/null ) ; then
done
else
for i in $v850e_files ; do
- if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"v850e\" from $i...
fi
@@ -170,22 +170,24 @@ else
fi
done
fi
-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
+
+v850_files="ChangeLog"
+if ( echo $* | grep keep\-v850 > /dev/null ) ; then
+ for i in $v850_files ; do
+ if test -f $i && (grep sanitize-v850 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping v850eq stuff in $i
+ echo Keeping v850 stuff in $i
fi
fi
done
else
- for i in $v850e_files ; do
- if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ for i in $v850_files ; do
+ if test -f $i && (grep sanitize-v850 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"v850eq\" from $i...
+ echo Removing traces of \"v850\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new
+ sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...