unsanitize v9
This commit is contained in:
parent
dae00c8a78
commit
04b42ec7e8
30
.Sanitize
30
.Sanitize
@ -134,36 +134,6 @@ if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
|
||||
fi
|
||||
mv new Makefile.in
|
||||
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Looking for signs of \"v9\"...
|
||||
fi
|
||||
|
||||
# Don't try to clean directories here, as the 'mv' command will fail.
|
||||
# Also, grep fails on NFS mounted directories.
|
||||
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
|
||||
for i in * ; do
|
||||
if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Keeping v9 stuff in $i
|
||||
fi
|
||||
fi
|
||||
done
|
||||
else
|
||||
for i in * ; do
|
||||
if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Cleaning the \"v9\" out of $i...
|
||||
fi
|
||||
cp $i new
|
||||
sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
|
||||
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
||||
mv $i .Recover
|
||||
fi
|
||||
mv new $i
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Thawing away the \"chill\"...
|
||||
fi
|
||||
|
6
config.sub
vendored
6
config.sub
vendored
@ -163,14 +163,12 @@ case $basic_machine in
|
||||
;;
|
||||
# Recognize the various machine names and aliases which stand
|
||||
# for a CPU type and a company and sometimes even an OS.
|
||||
# start-sanitize-v9
|
||||
sparc64) # CYGNUS LOCAL
|
||||
basic_machine=sparc64-sun
|
||||
os=-elf
|
||||
;;
|
||||
sparc64-*) # CYGNUS LOCAL
|
||||
;;
|
||||
# end-sanitize-v9
|
||||
|
||||
mips3-*) # CYGNUS LOCAL
|
||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
||||
@ -905,10 +903,6 @@ fi
|
||||
# manufacturer. We pick the logical manufacturer.
|
||||
vendor=unknown
|
||||
case $basic_machine in
|
||||
sparc-sun)
|
||||
# Strip off Sun's patch-release suffix
|
||||
os=`echo $os | sed 's/_U1$//'`
|
||||
;;
|
||||
*-unknown)
|
||||
case $os in
|
||||
-riscix*)
|
||||
|
@ -35,36 +35,6 @@ mips.h
|
||||
|
||||
Things-to-lose:
|
||||
|
||||
|
||||
Do-last:
|
||||
|
||||
v9dirty="common.h"
|
||||
|
||||
if ( echo $* | egrep verbose > /dev/null ) ; then
|
||||
verbose=true
|
||||
else
|
||||
verbose=
|
||||
fi
|
||||
|
||||
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Keeping v9 in ${v9dirty}
|
||||
fi
|
||||
else
|
||||
for i in ${v9dirty} ; do
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Sanitizing v9 in $i
|
||||
fi
|
||||
rm -f new
|
||||
grep -v v9 $i > new
|
||||
if [ -n "${safe}" ] ; then
|
||||
mv $i .Recover
|
||||
else
|
||||
rm $i
|
||||
fi
|
||||
mv new $i
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# End of file.
|
||||
|
Loading…
Reference in New Issue
Block a user