diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize index e3a074f246..ff90ec6c90 100644 --- a/opcodes/.Sanitize +++ b/opcodes/.Sanitize @@ -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