X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=.Sanitize;h=c304e527d48714274f2fe87f6b8224d6eb65b8e1;hb=70ee778220f5c416d29fab38d9331e659d43c6a6;hp=ce058bde4f2d65c6d823096dea0ea8649b3b61df;hpb=6079ad780fd5950e3f8a9fedda6661f77af539bd;p=deliverable%2Fbinutils-gdb.git diff --git a/.Sanitize b/.Sanitize index ce058bde4f..c304e527d4 100644 --- a/.Sanitize +++ b/.Sanitize @@ -48,9 +48,9 @@ Do-first: keep_these_too="${keep_these_too} .cvsignore CYGNUS autoconf apache bash - bfd binutils byacc cvs deja-gnu dejagnu diff dosrel dvips emacs emacs19 - examples expect fileutils findutils flex - gas gawk gcc gdb gdbm gdbtest glob gprof grep grez groff guile gzip + bfd binutils bison byacc cvs deja-gnu dejagnu diff dosrel dvips + emacs emacs19 examples expect fileutils findutils flex + gas gawk gcc gdb gdbm gdbtest glob gperf gprof grep grez groff guile gzip include inet install-sh ispell ld less libg++ libgcc libgloss libiberty libio librx libstdc++ m4 make mkinstalldirs mmalloc move-if-change newlib ncurses opcodes @@ -59,7 +59,7 @@ keep_these_too="${keep_these_too} .cvsignore CYGNUS autoconf texinfo tgas utils uudecode wdiff xiberty configure.bat makeall.bat setup.com makefile.vms winsup mpw-README mpw-configure mpw-config.in mpw-build.in mpw-install - ltconfig ltmain.sh missing" + ltconfig ltmain.sh missing ylwrap" lose_these_too="${lose_these_too} testsuite" @@ -109,10 +109,10 @@ fi ide_files="itcl libide vmake" if (echo $* | grep keep\-ide > /dev/null); then - lose_these_too="${lose_these_too} ${ide_files}" + keep_these_too="${keep_these_too} ${ide_files}" test -n "$verbose" && echo Keeping ${ide_files} else - keep_these_too="${keep_these_too} ${ide_files}" + lose_these_too="${lose_these_too} ${ide_files}" fi @@ -214,39 +214,6 @@ else done fi -if [ -n "${verbose}" ] ; then - echo Processing \"arc\"... -fi - -arc_files="config.sub configure.in config-ml.in" - -if ( echo $* | grep keep\-arc > /dev/null ) ; then - for i in $arc_files ; do - if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then - if [ -n "${verbose}" ] ; then - echo Keeping arc stuff in $i - fi - fi - done -else - for i in * ; do - if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then - if [ -n "${verbose}" ] ; then - echo Removing traces of \"arc\" from $i... - fi - cp $i new - sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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 [ -n "${verbose}" ] ; then echo Processing \"d30v\"... fi @@ -286,22 +253,22 @@ fi v850_files="ChangeLog config.sub configure.in" -if ( echo $* | grep keep\-v850 > /dev/null ) ; then +if ( echo $* | grep keep\-v850e > /dev/null ) ; then for i in $v850_files ; do - if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping v850 stuff in $i + echo Keeping v850e stuff in $i fi fi done else for i in * ; do - if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"v850\" from $i... + echo Removing traces of \"v850e\" from $i... fi cp $i new - sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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... @@ -342,24 +309,24 @@ else done fi -tic80_files="ChangeLog config.sub configure.in" +tx19_files="ChangeLog config.sub" -if ( echo $* | grep keep\-tic80 > /dev/null ) ; then - for i in $tic80_files ; do - if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then +if ( echo $* | grep keep\-tx19 > /dev/null ) ; then + for i in $tx19_files ; do + if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping tic80 stuff in $i + echo Keeping tx19 stuff in $i fi fi done else for i in * ; do - if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then + if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"tic80\" from $i... + echo Removing traces of \"tx19\" from $i... fi cp $i new - sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new + sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -371,38 +338,24 @@ else done fi -if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then - echo Catering to RMS by removing traces of \"gdbtk\"... - if [ -n "${verbose}" ] ; then - echo Removing traces of \"gdbtk\" from Makefile.in... - fi - cp Makefile.in new - sed -e '/GDBTK_SUPPORT_DIRS=/d' -e 's/ $(GDBTK_SUPPORT_DIRS)//' < Makefile.in > new - if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then - if [ -n "${verbose}" ] ; then - echo Caching Makefile.in in .Recover... - fi - mv Makefile.in .Recover - fi - mv new Makefile.in -fi +tic80_files="ChangeLog config.sub configure.in" -if ( echo $* | grep keep\-gm > /dev/null ) ; then - for i in * ; do - if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping gm stuff in $i + echo Keeping tic80 stuff in $i fi fi done else for i in * ; do - if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"gm\" from $i... + echo Removing traces of \"tic80\" from $i... fi cp $i new - sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new + sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -441,6 +394,22 @@ else done fi +if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then + echo Catering to RMS by removing traces of \"gdbtk\"... + if [ -n "${verbose}" ] ; then + echo Removing traces of \"gdbtk\" from Makefile.in... + fi + cp Makefile.in new + sed -e '/GDBTK_SUPPORT_DIRS=/d' -e 's/ $(GDBTK_SUPPORT_DIRS)//' < Makefile.in > new + if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then + if [ -n "${verbose}" ] ; then + echo Caching Makefile.in in .Recover... + fi + mv Makefile.in .Recover + fi + mv new Makefile.in +fi + # Do this check LAST! for i in * ; do if test ! -d $i && (grep sanitize $i > /dev/null) ; then