lose_these_too="${d30v_files} ${lose_these_too}"
fi
-v850_files="v850-opc.c v850-dis.c"
-
-if ( echo $* | grep keep\-v850 > /dev/null ) ; then
- keep_these_too="${v850_files} ${keep_these_too}"
-else
- if ( echo $* | grep keep\-v850e > /dev/null ) ; then
- keep_these_too="${v850_files} ${keep_these_too}"
- else
- if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
- keep_these_too="${v850_files} ${keep_these_too}"
- else
- lose_these_too="${v850_files} ${lose_these_too}"
- fi
- fi
-fi
-
tic80_files="tic80-opc.c tic80-dis.c"
if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
lose_these_too="${tic80_files} ${lose_these_too}"
fi
-
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
sysdep.h
w65-dis.c
w65-opc.h
+v850-opc.c
+v850-dis.c
z8k-dis.c
z8k-opc.h
z8kgen.c
Do-last:
-arc_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
-if ( echo $* | grep keep\-arc > /dev/null ) ; then
- for i in $arc_files ; do
- if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping arc stuff in $i
- fi
- fi
- done
-else
- for i in $arc_files ; do
- if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"arc\" from $i...
- fi
- cp $i new
- sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
-
d30v_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
if ( echo $* | grep keep\-d30v > /dev/null ) ; then
for i in $d30v_files ; do
done
fi
-v850_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
-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
- if [ -n "${verbose}" ] ; then
- echo Keeping v850 stuff in $i
- fi
- fi
- done
-else
- for i in $v850_files ; do
- if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"v850\" from $i...
- fi
- cp $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...
- fi
- mv $i .Recover
- fi
- mv new $i
- fi
- done
-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
- if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
for i in $v850e_files ; do
if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping v850e/v850eq stuff in $i
+ echo Keeping v850e stuff in $i
fi
fi
done
- else
+else
for i in $v850e_files ; do
- if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"v850eq\" from $i...
+ echo Removing traces of \"v850e\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new
+ sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...
mv new $i
fi
done
- fi
-else
- 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
+fi
+
+
+r5900_files="ChangeLog mips-opc.c"
+if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
+ for i in $r5900_files ; do
+ if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping v850e/v850eq stuff in $i
+ echo Keeping r5900 stuff in $i
fi
fi
done
- else
- for i in $v850e_files ; do
- if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
+else
+ for i in $r5900_files ; do
+ if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"v850e/v850eq\" from $i...
+ echo Removing traces of \"r5900\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
+ sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...
mv new $i
fi
done
- fi
fi
-
-r5900_files="ChangeLog mips-opc.c"
-if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
- for i in $r5900_files ; do
- if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+tx19_files="ChangeLog mips16-opc.c"
+if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
+ for i in $tx19_files ; do
+ if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping r5900 stuff in $i
+ echo Keeping tx19 stuff in $i
fi
fi
done
else
- for i in $r5900_files ; do
- if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+ for i in $tx19_files ; do
+ if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"r5900\" from $i...
+ echo Removing traces of \"tx19\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
+ sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...
done
fi
+if [ -n "${verbose}" ] ; then
+ echo Processing \"sh4\"...
+fi
+
+sh4_files="ChangeLog sh-opc.h sh-dis.c"
+if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping sh4 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"sh4\" from $i...
+ fi
+ cp $i new
+ sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $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
+
for i in * ; do
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
echo '***' Some mentions of Sanitize are still left in $i! 1>&2