diff options
author | Fred Fish <fnf@specifix.com> | 1998-01-26 17:14:55 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1998-01-26 17:14:55 +0000 |
commit | e454c4004f35649ad03fe21ac4f0c0eca46e20ea (patch) | |
tree | 75556a3857d4e33933d32b7316bd17200aa67903 /.Sanitize | |
parent | 0ca3c05121f6a98c0517e0c5ae516a236493cb10 (diff) | |
download | gdb-e454c4004f35649ad03fe21ac4f0c0eca46e20ea.zip gdb-e454c4004f35649ad03fe21ac4f0c0eca46e20ea.tar.gz gdb-e454c4004f35649ad03fe21ac4f0c0eca46e20ea.tar.bz2 |
Fix minor sanitization problems.
Diffstat (limited to '.Sanitize')
-rw-r--r-- | .Sanitize | 33 |
1 files changed, 30 insertions, 3 deletions
@@ -488,9 +488,20 @@ 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 + for i in * ; do + if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"gdbtk\" from $i... + fi + cp $i new + sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + echo Caching $i in .Recover... + mv $i .Recover + fi + mv new $i + fi + done 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 @@ -500,6 +511,22 @@ if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then mv Makefile.in .Recover fi mv new Makefile.in +else + echo Leaving \"gdbtk\" in the sources... + for i in * ; do + if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines... + fi + cp $i new + sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + echo Caching $i in .Recover... + mv $i .Recover + fi + mv new $i + fi + done fi vr5400_files="ChangeLog config.sub" |