lose_these_too="${cygnus_files} ${lose_these_too}"
fi
-d30v_files="d30v-dis.c d30v-opc.c"
+fr30_files="fr30-opc.h fr30-opc.c fr30-asm.c fr30-dis.c"
-if ( echo $* | grep keep\-d30v > /dev/null ) ; then
- keep_these_too="${d30v_files} ${keep_these_too}"
+if ( echo $* | grep keep\-fr30 > /dev/null ) ; then
+ keep_these_too="${fr30_files} ${keep_these_too}"
else
- lose_these_too="${d30v_files} ${lose_these_too}"
+ lose_these_too="${fr30_files} ${lose_these_too}"
fi
tic80_files="tic80-opc.c tic80-dis.c"
lose_these_too="${sky_files} ${lose_these_too}"
fi
-r5900_files="vu0.h"
-
-if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
- keep_these_too="${r5900_files} ${keep_these_too}"
-else
- lose_these_too="${r5900_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
configure.in
d10v-dis.c
d10v-opc.c
+d30v-dis.c
+d30v-opc.c
dep-in.sed
dis-buf.c
disassemble.c
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
- if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping d30v stuff in $i
- fi
- fi
- done
-else
- for i in $d30v_files ; do
- if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"d30v\" from $i...
- fi
- cp $i new
- sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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
done
fi
-vr5400_files="ChangeLog mips-opc.c mips-dis.c"
-if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
- for i in $vr5400_files ; do
- if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+cygnus_files="ChangeLog mips-opc.c mips-dis.c"
+if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
+ for i in $cygnus_files ; do
+ if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping vr5400 stuff in $i
+ echo Keeping cygnus stuff in $i
fi
fi
done
else
- for i in $vr5400_files ; do
- if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+ for i in $cygnus_files ; do
+ if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"vr5400\" from $i...
+ echo Removing traces of \"cygnus\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
+ sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...
done
fi
+fr30_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
+if ( echo $* | grep keep\-fr30 > /dev/null ) ; then
+ for i in $fr30_files ; do
+ if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping fr30 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $fr30_files ; do
+ if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"fr30\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-fr30/,/end-\sanitize\-fr30/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
+
coldfire_files="ChangeLog m68k-opc.c"
if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
for i in $coldfire_files ; do
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
- fi
+nortel_ppc750_files="ChangeLog ppc-opc.c"
+if ( echo $* | grep keep\-nortel-ppc750 > /dev/null ) ; then
+ for i in $nortel_ppc750_files ; do
+ if test -f $i && (grep sanitize-nortel-ppc750 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping nortel-ppc750 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $nortel_ppc750_files ; do
+ if test -f $i && (grep sanitize-nortel-ppc750 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"nortel-ppc750\" from $i...
+ fi
+ cp $i new
+ # The PIPE sanitization will be much cleaner with redact.
+ sed -e '/start\-sanitize\-nortel-ppc750/,/end\-sanitize\-nortel-ppc750/d' \
+ -e 's/, PIPE_[A-Z]*//g' < $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 opcodes/$i! 1>&2
+ fi
+done
+
+for lost in .. $lose_these_too; do
+ if test $lost != ..; then
+ for i in Makefile.am Makefile.in configure.in configure; do
+ if fgrep $lost $i >/dev/null 2>&1; then
+ echo '***' File $lost was sanitized out but is still mentioned in opcodes/$i 1>&2
+ fi
+ done
+ fi
done
# This must come after all other sanitizations. Re-sanitize the .pot