diff options
author | Fred Fish <fnf@specifix.com> | 1998-01-31 06:25:12 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1998-01-31 06:25:12 +0000 |
commit | 6271cadd106ad2316615fe962bf9ca509b9bc5f8 (patch) | |
tree | 8aab1fa3771f947d6262540da9775ba7fe3c7a9b /.Sanitize | |
parent | 9ec6741b177fbd4d872a13002d540b60b11e4b78 (diff) | |
download | gdb-6271cadd106ad2316615fe962bf9ca509b9bc5f8.zip gdb-6271cadd106ad2316615fe962bf9ca509b9bc5f8.tar.gz gdb-6271cadd106ad2316615fe962bf9ca509b9bc5f8.tar.bz2 |
Sanitize away "*-windows*" host makefile frag when sanitizing
with --lose-mswin.
Diffstat (limited to '.Sanitize')
-rw-r--r-- | .Sanitize | 42 |
1 files changed, 42 insertions, 0 deletions
@@ -537,6 +537,48 @@ else done fi +if ( echo $* | grep lose\-mswin > /dev/null ) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"mswin\"... + fi + for i in * ; do + if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"mswin\" from $i... + fi + cp $i new + sed '/start\-sanitize\-mswin/,/end-\sanitize\-mswin/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 +else + if [ -n "${verbose}" ] ; then + echo Leaving \"mswin\" in the sources... + fi + for i in * ; do + if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping \"mswin\" stuff in $i, but editing out sanitize lines... + fi + cp $i new + sed -e '/start\-sanitize\-mswin/d' -e '/end\-sanitize\-mswin/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 + vr5400_files="ChangeLog config.sub" if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then |