diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-03-27 11:33:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-03-27 11:33:16 +0000 |
commit | bd85beb90c3c162c4e93bc4746c90f31005ea589 (patch) | |
tree | 6dca27c8012feda11780e5eaafb0a2ea35270805 /sim | |
parent | d20af0bd5c55b9e7416e95fa078eb6a7b3d3c2fb (diff) | |
download | gdb-bd85beb90c3c162c4e93bc4746c90f31005ea589.zip gdb-bd85beb90c3c162c4e93bc4746c90f31005ea589.tar.gz gdb-bd85beb90c3c162c4e93bc4746c90f31005ea589.tar.bz2 |
Clean up m32rx sanitization
Diffstat (limited to 'sim')
-rw-r--r-- | sim/testsuite/.Sanitize | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/sim/testsuite/.Sanitize b/sim/testsuite/.Sanitize index dee604f..e585016 100644 --- a/sim/testsuite/.Sanitize +++ b/sim/testsuite/.Sanitize @@ -36,10 +36,11 @@ else lose_these_too="${sky_files} ${lose_these_too}" fi +v850e_files="v850e-elf" if ( echo $* | grep keep\-v850e > /dev/null ) ; then - keep_these_too="v850e-elf ${keep_these_too}" + keep_these_too="${v850e_files} ${keep_these_too}" else - lose_these_too="v850e-elf ${lose_these_too}" + lose_these_too="${v850e_files} ${lose_these_too}" fi # All files listed between the "Things-to-keep:" line and the @@ -152,6 +153,34 @@ else done fi +m32rx_files="configure configure.in ChangeLog" +if ( echo $* | grep keep\-m32rx > /dev/null ) ; then + for i in $m32rx_files ; do + if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping m32rx stuff in $i + fi + fi + done +else + for i in $m32rx_files ; do + if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"m32rx\" from $i... + fi + cp $i new + sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/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 |