From 579d9a974973fe83ab911016484c2149ecf14b08 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 5 Feb 1999 17:39:42 +0000 Subject: [PATCH] m32rx -> cygnus sanitization change. --- sim/testsuite/.Sanitize | 18 ++++++++-------- sim/testsuite/m32r-elf/.Sanitize | 35 -------------------------------- sim/testsuite/sim/m32r/.Sanitize | 32 ++++++++++++++--------------- 3 files changed, 25 insertions(+), 60 deletions(-) diff --git a/sim/testsuite/.Sanitize b/sim/testsuite/.Sanitize index 1d2f7106ee7..8dbbe2fdcf9 100644 --- a/sim/testsuite/.Sanitize +++ b/sim/testsuite/.Sanitize @@ -114,23 +114,23 @@ 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 +cygnus_files="configure configure.in ChangeLog" +if ( echo $* | grep keep\-cygnus > /dev/null ) ; then + for i in $cygnus_files ; do + if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping m32rx stuff in $i + echo Keeping cygnus stuff in $i fi fi done else - for i in $m32rx_files ; do - if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then + for i in $cygnus_files ; do + if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"m32rx\" from $i... + echo Removing traces of \"cygnus\" from $i... fi cp $i new - sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new + sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... diff --git a/sim/testsuite/m32r-elf/.Sanitize b/sim/testsuite/m32r-elf/.Sanitize index dbf61fa8b2d..bdcddb51fed 100644 --- a/sim/testsuite/m32r-elf/.Sanitize +++ b/sim/testsuite/m32r-elf/.Sanitize @@ -15,13 +15,6 @@ Do-first: -#m32rx_files="..." -#if ( echo $* | grep keep\-m32rx > /dev/null ) ; then -# keep_these_too="${m32rx_files} ${keep_these_too}" -#else -# lose_these_too="${m32rx_files} ${lose_these_too}" -#fi - # All files listed between the "Things-to-keep:" line and the # "Files-to-sed:" line will be kept. All other files will be removed. # Directories listed in this section will have their own Sanitize @@ -42,32 +35,4 @@ Things-to-lose: Do-last: -m32rx_files="ChangeLog Makefile.in" -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 - # End of file. diff --git a/sim/testsuite/sim/m32r/.Sanitize b/sim/testsuite/sim/m32r/.Sanitize index 6c2bde77187..6eb85f71f8e 100644 --- a/sim/testsuite/sim/m32r/.Sanitize +++ b/sim/testsuite/sim/m32r/.Sanitize @@ -15,7 +15,7 @@ Do-first: -m32rx_files=" +cygnus_files=" bcl24.cgs bcl8.cgs bncl24.cgs @@ -54,10 +54,10 @@ sath.cgs sc.cgs snc.cgs" -if ( echo $* | grep keep\-m32rx > /dev/null ) ; then - keep_these_too="${m32rx_files} ${keep_these_too}" +if ( echo $* | grep keep\-cygnus > /dev/null ) ; then + keep_these_too="${cygnus_files} ${keep_these_too}" else - lose_these_too="${m32rx_files} ${lose_these_too}" + lose_these_too="${cygnus_files} ${lose_these_too}" fi Things-to-keep: @@ -177,23 +177,23 @@ Things-to-lose: Do-last: -m32rx_files="allinsn.exp misc.exp testutils.inc" -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 +cygnus_files="allinsn.exp misc.exp testutils.inc" +if ( echo $* | grep keep\-cygnus > /dev/null ) ; then + for i in $cygnus_files ; do + if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping m32rx stuff in $i + echo Keeping cygnus stuff in $i fi fi done else - for i in $m32rx_files ; do - if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then + for i in $cygnus_files ; do + if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"m32rx\" from $i... + echo Removing traces of \"cygnus\" from $i... fi cp $i new - sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new + sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -203,13 +203,13 @@ else mv new $i fi done - # Remove m32rx from `mach'. + # Remove cygnus from `mach'. for i in *.cgs ; do if [ -n "${verbose}" ] ; then - echo Removing traces of \"m32rx\" from $i... + echo Removing traces of \"cygnus\" from $i... fi cp $i new - sed -e 's/m32rx//' < $i > new + sed -e 's/cygnus//' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... -- 2.30.2