mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
redo fr30 sanitization
This commit is contained in:
parent
04ad3a5905
commit
71e6edeab4
@ -305,6 +305,34 @@ else
|
||||
done
|
||||
fi
|
||||
|
||||
fr30_files="ChangeLog configure.in configure"
|
||||
if ( echo $* | grep keep\-fr30 > /dev/null ) ; then
|
||||
for i in $fr30_files ; do
|
||||
if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Keeping fr30 stuff in $i
|
||||
fi
|
||||
fi
|
||||
done
|
||||
else
|
||||
for i in $fr30_files ; do
|
||||
if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Removing traces of \"fr30\" from $i...
|
||||
fi
|
||||
cp $i new
|
||||
sed '/start\-sanitize\-fr30/,/end-\sanitize\-fr30/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
|
||||
|
||||
am33_files="ChangeLog"
|
||||
if ( echo $* | grep keep\-am33 > /dev/null ) ; then
|
||||
for i in $am33_files ; do
|
||||
|
@ -23,6 +23,14 @@ else
|
||||
lose_these_too="${cygnus_files} ${lose_these_too}"
|
||||
fi
|
||||
|
||||
fr30_files="fr30-opc.h fr30-opc.c fr30-asm.c fr30-dis.c"
|
||||
|
||||
if ( echo $* | grep keep\-fr30 > /dev/null ) ; then
|
||||
keep_these_too="${fr30_files} ${keep_these_too}"
|
||||
else
|
||||
lose_these_too="${fr30_files} ${lose_these_too}"
|
||||
fi
|
||||
|
||||
tic80_files="tic80-opc.c tic80-dis.c"
|
||||
|
||||
if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
|
||||
@ -120,11 +128,6 @@ z8kgen.c
|
||||
|
||||
Things-to-lose:
|
||||
|
||||
fr30-asm.c
|
||||
fr30-dis.c
|
||||
fr30-opc.c
|
||||
fr30-opc.h
|
||||
|
||||
Do-last:
|
||||
|
||||
cygnus_files="ChangeLog Makefile.am Makefile.in configure.in configure"
|
||||
@ -381,6 +384,34 @@ else
|
||||
done
|
||||
fi
|
||||
|
||||
fr30_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
|
||||
if ( echo $* | grep keep\-fr30 > /dev/null ) ; then
|
||||
for i in $fr30_files ; do
|
||||
if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Keeping fr30 stuff in $i
|
||||
fi
|
||||
fi
|
||||
done
|
||||
else
|
||||
for i in $fr30_files ; do
|
||||
if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Removing traces of \"fr30\" from $i...
|
||||
fi
|
||||
cp $i new
|
||||
sed '/start\-sanitize\-fr30/,/end-\sanitize\-fr30/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
|
||||
|
||||
coldfire_files="ChangeLog m68k-opc.c"
|
||||
if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
|
||||
for i in $coldfire_files ; do
|
||||
|
Loading…
Reference in New Issue
Block a user