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
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
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
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