mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
Adding "recover"'ability.
This commit is contained in:
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
Do-first:
|
Do-first:
|
||||||
|
|
||||||
recover="aout64.h sparc-opcode.h"
|
|
||||||
echo Sanitizing `pwd`...
|
echo Sanitizing `pwd`...
|
||||||
|
|
||||||
# All files listed between the "Things-to-keep:" line and the
|
# All files listed between the "Things-to-keep:" line and the
|
||||||
@ -79,24 +78,22 @@ wait.h
|
|||||||
|
|
||||||
Do-last:
|
Do-last:
|
||||||
|
|
||||||
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
|
v9dirty="sparc-opcode.h aout64.h"
|
||||||
echo Keeping v9 in sparc-opcode.h.
|
|
||||||
else
|
|
||||||
echo Sanitizing v9 in sparc-opcode.h.
|
|
||||||
rm -f new
|
|
||||||
grep -v v9 sparc-opcode.h > new
|
|
||||||
rm sparc-opcode.h
|
|
||||||
mv new sparc-opcode.h
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
|
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
|
||||||
echo Keeping v9 in aout64.h.
|
echo Keeping v9 in ${v9dirty}
|
||||||
else
|
else
|
||||||
echo Sanitizing v9 in aout64.h.
|
for i in ${v9dirty} ; do
|
||||||
|
echo Sanitizing v9 in $i
|
||||||
rm -f new
|
rm -f new
|
||||||
grep -v v9 aout64.h > new
|
grep -v v9 $i > new
|
||||||
rm aout64.h
|
if [ -n "${safe}" ] ; then
|
||||||
mv new aout64.h
|
mv $i .Recover
|
||||||
|
else
|
||||||
|
rm sparc-opcode.h
|
||||||
|
fi
|
||||||
|
mv new $i
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Done in `pwd`.
|
echo Done in `pwd`.
|
||||||
@ -104,6 +101,9 @@ echo Done in `pwd`.
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.12 1991/09/04 02:51:18 rich
|
||||||
|
# Adding "recover"'ability.
|
||||||
|
#
|
||||||
# Revision 1.11 1991/09/02 21:21:47 rich
|
# Revision 1.11 1991/09/02 21:21:47 rich
|
||||||
# Recover the editted files.
|
# Recover the editted files.
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user