diff options
-rw-r--r-- | .Sanitize | 29 | ||||
-rw-r--r-- | gas/.Sanitize | 28 | ||||
-rw-r--r-- | gas/config/.Sanitize | 28 | ||||
-rw-r--r-- | gdb/.Sanitize | 27 |
4 files changed, 112 insertions, 0 deletions
@@ -430,6 +430,35 @@ else done fi +vr4111_files="ChangeLog config.sub" + +if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then + for i in $vr4111_files ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping vr4111 stuff in $i + fi + fi + done +else + for i in * ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"vr4111\" from $i... + fi + cp $i new + sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/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 + if ( echo $* | grep keep\-ide > /dev/null ) ; then for i in * ; do if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then diff --git a/gas/.Sanitize b/gas/.Sanitize index 641b6d9..5003bcb 100644 --- a/gas/.Sanitize +++ b/gas/.Sanitize @@ -403,6 +403,34 @@ else done fi +vr4111_files="ChangeLog" +if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then + for i in $vr4111_files ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping vr4111 stuff in $i + fi + fi + done +else + for i in $vr4111_files ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"vr4111\" from $i... + fi + cp $i new + sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/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 + for i in * ; do if test ! -d $i && (grep sanitize $i > /dev/null) ; then echo '***' Some mentions of Sanitize are still left in $i! 1>&2 diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize index 252691d..49078b5 100644 --- a/gas/config/.Sanitize +++ b/gas/config/.Sanitize @@ -412,6 +412,34 @@ else done fi +vr4111_files="tc-mips.c" +if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then + for i in $vr4111_files ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping vr4111 stuff in $i + fi + fi + done +else + for i in $vr4111_files ; do + if test -r $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"vr4111\" from $i... + fi + cp $i new + sed '/start\-sanitize\-vr4111/,/end\-sanitize\-vr4111/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 + for i in * ; do if test ! -d $i && (grep sanitize $i > /dev/null) ; then echo '***' Some mentions of Sanitize are still left in $i! 1>&2 diff --git a/gdb/.Sanitize b/gdb/.Sanitize index 26b9b5e..165a594 100644 --- a/gdb/.Sanitize +++ b/gdb/.Sanitize @@ -713,6 +713,33 @@ else done fi +if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then + for i in * ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping vr4111 stuff in $i + fi + fi + done +else + for i in * ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"vr4111\" from $i... + fi + cp $i new + sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/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 + for i in * ; do if test ! -d $i && (grep sanitize $i > /dev/null) ; then echo '***' Some mentions of Sanitize are still left in $i! 1>&2 |