lose_these_too="${arc_files} ${lose_these_too}"
fi
+d10v_files="cpu-d10v.c elf32-d10v.c"
+
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ keep_these_too="${d10v_files} ${keep_these_too}"
+else
+ lose_these_too="${d10v_files} ${lose_these_too}"
+fi
+
+v850_files="cpu-v850.c elf32-v850.c"
+
+if ( echo $* | grep keep\-v850 > /dev/null ) ; then
+ keep_these_too="${v850_files} ${keep_these_too}"
+else
+ lose_these_too="${v850_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
aout-arm.c
aout-encap.c
aout-ns32k.c
+aout-sparcle.c
aout-target.h
aout0.c
aout32.c
elf32-m88k.c
elf32-mips.c
elf32-ppc.c
+elf32-sh.c
elf32-sparc.c
elf32.c
elf64-alpha.c
done
fi
-gm_files="ChangeLog ChangeLog.2 config.bfd"
-if ( echo $* | grep keep\-gm > /dev/null ) ; then
- for i in $gm_files ; do
- if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
+d10v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping gm stuff in $i
+ echo Keeping d10v stuff in $i
fi
fi
done
else
- for i in $gm_files ; do
- if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"gm\" from $i...
+ echo Removing traces of \"d10v\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
+ sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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
+
+m32r_files="ChangeLog Makefile.in archures.c config.bfd configure.in configure elf.c targets.c"
+if ( echo $* | grep keep\-m32r > /dev/null ) ; then
+ for i in $m32r_files ; do
+ if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping m32r stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $m32r_files ; do
+ if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"m32r\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/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
+
+v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
+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...
done
fi
-h8s_files="archures.c coff-h8300.c coffcode.h cpu-h8300.c ChangeLog bfd-in2.h"
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
- for i in $h8s_files ; do
- if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
+gm_files="ChangeLog ChangeLog.2 config.bfd"
+if ( echo $* | grep keep\-gm > /dev/null ) ; then
+ for i in $gm_files ; do
+ if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Keeping h8s stuff in $i
+ echo Keeping gm stuff in $i
fi
fi
done
else
- for i in $h8s_files ; do
- if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
+ for i in $gm_files ; do
+ if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
- echo Removing traces of \"h8s\" from $i...
+ echo Removing traces of \"gm\" from $i...
fi
cp $i new
- sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
+ sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...