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
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
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
-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 m32rx 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 \"m32rx\" 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