aboutsummaryrefslogtreecommitdiff
path: root/opcodes/.Sanitize
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/.Sanitize')
-rw-r--r--opcodes/.Sanitize62
1 files changed, 62 insertions, 0 deletions
diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize
index d4eeb64..dc6820a 100644
--- a/opcodes/.Sanitize
+++ b/opcodes/.Sanitize
@@ -36,7 +36,15 @@ 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"
@@ -205,6 +213,60 @@ else
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
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850e stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850e\" from $i...
+ fi
+ cp $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...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ 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
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850eq stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850eq\" from $i...
+ fi
+ cp $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...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
r5900_files="ChangeLog mips-opc.c"
if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
for i in $r5900_files ; do