From 1e012f703eebd9ea20b3ed8ab659574ab2c9a15b Mon Sep 17 00:00:00 2001 From: Felix Lee Date: Fri, 18 Dec 1998 16:43:49 +0000 Subject: [PATCH] sanitization fix. --- bfd/.Sanitize | 18 ++++++++++++++++++ gdb/testsuite/.Sanitize | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/bfd/.Sanitize b/bfd/.Sanitize index cd40980edbc..73213d44f3a 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -299,6 +299,24 @@ Things-to-lose: Do-last: +never_files="ChangeLog" +for i in $never_files ; do + if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"cygnus-never\" from $i... + fi + cp $i new + sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/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 + am33_files="ChangeLog archures.c bfd-in2.h cpu-m10300.c elf-m10300.c" if ( echo $* | grep keep\-am33 > /dev/null ) ; then for i in $am33_files ; do diff --git a/gdb/testsuite/.Sanitize b/gdb/testsuite/.Sanitize index 21a4002864e..dae1f7c3d0e 100644 --- a/gdb/testsuite/.Sanitize +++ b/gdb/testsuite/.Sanitize @@ -64,6 +64,25 @@ Things-to-lose: Do-last: +never_files="ChangeLog" +for i in $never_files ; do + if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"cygnus-never\" from $i... + fi + cp $i new + sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/ +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 + am33_files="ChangeLog" if ( echo $* | grep keep\-am33 > /dev/null ) ; then for i in $am33_files ; do -- 2.30.2