diff options
Diffstat (limited to 'bfd/.Sanitize')
-rw-r--r-- | bfd/.Sanitize | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 26b7c1f..c547528 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -33,6 +33,12 @@ else lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}" fi +if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then + keep_these_too="nlm32-powerpc.c ${keep_these_too}" +else + lose_these_too="nlm32-powerpc.c ${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 @@ -124,6 +130,7 @@ elf32-i860.c elf32-m68k.c elf32-m88k.c elf32-mips.c +elf32-powerpc.c elf32-sparc.c elf32-target.h elf32.c @@ -248,4 +255,27 @@ else fi +ppcfiles="ChangeLog Makefile.in configure.in config.bfd targets.c" +if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then + if [ -n "${verbose}" ] ; then + echo Keeping PowerPC NetWare stuff in $ppcfiles. + fi +else + if [ -n "${verbose}" ]; then + echo -n Removing PowerPC NetWare in `pwd`: + fi + for f in $ppcfiles ; do + if [ -n "${verbose}" ] ; then + echo -n " " $f + fi + sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new + if [ -n "${safe}" ] ; then + mv $f .Recover + fi + mv new $f + done + chmod a+x config.bfd +fi + + # End of file. |