sanitization fix.

This commit is contained in:
Felix Lee 1998-12-18 16:43:49 +00:00
parent c548312b72
commit 1e012f703e
2 changed files with 37 additions and 0 deletions

View File

@ -299,6 +299,24 @@ Things-to-lose:
Do-last:
never_files="ChangeLog"
for i in $never_files ; do
if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"cygnus-never\" from $i...
fi
cp $i new
sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/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
am33_files="ChangeLog archures.c bfd-in2.h cpu-m10300.c elf-m10300.c"
if ( echo $* | grep keep\-am33 > /dev/null ) ; then
for i in $am33_files ; do

View File

@ -64,6 +64,25 @@ Things-to-lose:
Do-last:
never_files="ChangeLog"
for i in $never_files ; do
if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"cygnus-never\" from $i...
fi
cp $i new
sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/
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
am33_files="ChangeLog"
if ( echo $* | grep keep\-am33 > /dev/null ) ; then
for i in $am33_files ; do