fix v850 sanitization
authorIan Lance Taylor <ian@airs.com>
Fri, 15 Aug 1997 15:44:07 +0000 (15:44 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 15 Aug 1997 15:44:07 +0000 (15:44 +0000)
opcodes/.Sanitize

index e3a074f..ff90ec6 100644 (file)
@@ -210,7 +210,7 @@ fi
 v850e_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c v850-opc.c v850-dis.c"
 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
@@ -218,7 +218,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
@@ -236,7 +236,7 @@ else
 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
+               if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
                                echo Keeping v850eq stuff in $i
                        fi
@@ -244,7 +244,7 @@ if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
        done
 else
        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 Removing traces of \"v850eq\" from $i...
                        fi