mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-29 06:50:32 +00:00
Remove last remnants of hpread sanitization.
This commit is contained in:
parent
b1bbe38b3d
commit
e9c99bc0ee
@ -365,32 +365,6 @@ else
|
||||
done
|
||||
fi
|
||||
|
||||
echo Removing traces of \"hpread\"...
|
||||
|
||||
# Don't try to clean directories here, as the 'mv' command will fail.
|
||||
# Also, grep fails on NFS mounted directories.
|
||||
if ( echo $* | grep keep\-hpread > /dev/null ) ; then
|
||||
for i in * ; do
|
||||
if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
|
||||
echo Keeping hpread stuff in $i
|
||||
fi
|
||||
done
|
||||
else
|
||||
for i in * ; do
|
||||
if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
|
||||
echo Removing traces of \"hpread\" out of $i...
|
||||
cp $i new
|
||||
sed '/start\-sanitize\-hpread/,/end-\sanitize\-hpread/d' < $i > new
|
||||
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
||||
echo Caching $i in .Recover...
|
||||
mv $i .Recover
|
||||
fi
|
||||
mv new $i
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
r16_files = "configure.in"
|
||||
|
||||
if ( echo $* | grep keep\-r16 > /dev/null ) ; then
|
||||
|
@ -42,29 +42,4 @@ Things-to-lose:
|
||||
|
||||
Do-last:
|
||||
|
||||
echo Removing traces of \"hpread\"...
|
||||
|
||||
# Don't try to clean directories here, as the 'mv' command will fail.
|
||||
# Also, grep fails on NFS mounted directories.
|
||||
if ( echo $* | grep keep\-hpread > /dev/null ) ; then
|
||||
for i in * ; do
|
||||
if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
|
||||
echo Keeping hpread stuff in $i
|
||||
fi
|
||||
done
|
||||
else
|
||||
for i in * ; do
|
||||
if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
|
||||
echo Removing traces of \"hpread\" out of $i...
|
||||
cp $i new
|
||||
sed '/start\-sanitize\-hpread/,/end-\sanitize\-hpread/d' < $i > new
|
||||
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
||||
echo Caching $i in .Recover...
|
||||
mv $i .Recover
|
||||
fi
|
||||
mv new $i
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# End of file.
|
||||
|
Loading…
Reference in New Issue
Block a user