diff options
author | Nick Clifton <nickc@redhat.com> | 1997-08-25 23:00:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1997-08-25 23:00:29 +0000 |
commit | 8988d935a335f9f60ec1eccc1caa70cd757e3201 (patch) | |
tree | ae79c7e64442c21e77ed4cbbc6a7271b94e8505c /bfd/.Sanitize | |
parent | a3515171ce237d5eca963c7fbb394be3cc3bf58a (diff) | |
download | gdb-8988d935a335f9f60ec1eccc1caa70cd757e3201.zip gdb-8988d935a335f9f60ec1eccc1caa70cd757e3201.tar.gz gdb-8988d935a335f9f60ec1eccc1caa70cd757e3201.tar.bz2 |
Switched over to using machine numbers to distinguish v850 architecture variants.
Diffstat (limited to 'bfd/.Sanitize')
-rw-r--r-- | bfd/.Sanitize | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 6678ae8..a6c4592 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -27,17 +27,14 @@ v850_files="elf32-v850.c" if ( echo $* | grep keep\-v850 > /dev/null ) ; then keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}" - lose_these_too="cpu-v850e.c cpu-v850eq.c ${lose_these_too}" else if ( echo $* | grep keep\-v850e > /dev/null ) ; then - keep_these_too="cpu-v850e.c ${v850_files} ${keep_these_too}" - lose_these_too="cpu-v850.c cpu-v850eq.c ${lose_these_too}" + keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}" else if ( echo $* | grep keep\-v850eq > /dev/null ) ; then - keep_these_too="cpu-v850eq.c ${v850_files} ${keep_these_too}" - lose_these_too="cpu-v850.c cpu-v850e.c ${lose_these_too}" + keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}" else - lose_these_too="cpu-v850.c cpu-v850e.c cpu-v850eq.c ${v850_files} ${lose_these_too}" + lose_these_too="cpu-v850.c ${v850_files} ${lose_these_too}" fi fi fi @@ -336,28 +333,22 @@ fi v850_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h elf32-v850.c" v850e_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h" -if ( echo $* | grep keep\-v850 > /dev/null ) ; then +if ( echo $* | grep keep\-v850eq > /dev/null ) ; then for i in $v850_files ; do - if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping v850 stuff in $i + echo Keeping v850eq stuff in $i fi fi done else - if ( echo $* | grep keep\-v850e > /dev/null ) ; then - true - else - if ( echo $* | grep keep\-v850eq > /dev/null ) ; then - true - else - for i in $v850e_files ; do - if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + for i in $v850_files ; do + if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"v850\" from $i... + echo Removing traces of \"v850eq\" from $i... fi cp $i new - sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new + sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -367,10 +358,7 @@ else mv new $i fi done - fi - fi fi - if ( echo $* | grep keep\-v850e > /dev/null ) ; then for i in $v850_files ; do if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then @@ -386,7 +374,7 @@ else echo Removing traces of \"v850e\" from $i... fi cp $i new - sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new + sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -397,22 +385,29 @@ else fi done fi -if ( echo $* | grep keep\-v850eq > /dev/null ) ; then + +if ( echo $* | grep keep\-v850 > /dev/null ) ; then for i in $v850_files ; do - if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then + if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping v850eq stuff in $i + echo Keeping v850 stuff in $i fi fi done else - for i in $v850_files ; do - if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then + if ( echo $* | grep keep\-v850e > /dev/null ) ; then + true + else + if ( echo $* | grep keep\-v850eq > /dev/null ) ; then + true + else + for i in $v850e_files ; do + if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"v850eq\" from $i... + echo Removing traces of \"v850\" from $i... fi cp $i new - sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new + sed '/start\-sanitize\-v850/,/end\-sanitize\-v850/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -422,6 +417,8 @@ else mv new $i fi done + fi + fi fi r5900_files="ChangeLog config.bfd" |