remove m32r sanitization

This commit is contained in:
Ian Lance Taylor 1997-04-01 04:12:20 +00:00
parent 88ddffaf42
commit 9582f9abec
1 changed files with 1 additions and 36 deletions

View File

@ -33,14 +33,6 @@ else
lose_these_too="${v850_files} ${lose_these_too}"
fi
m32r_files="m32r.h"
if ( echo $* | grep keep\-m32r > /dev/null ) ; then
keep_these_too="${m32r_files} ${keep_these_too}"
else
lose_these_too="${m32r_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
@ -57,6 +49,7 @@ dwarf2.h
external.h
hppa.h
internal.h
m32r.h
mips.h
ppc.h
sparc.h
@ -121,34 +114,6 @@ else
done
fi
m32r_files="ChangeLog common.h"
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 common.h"
if ( echo $* | grep keep\-v850 > /dev/null ) ; then
for i in $v850_files ; do