summaryrefslogtreecommitdiff
path: root/gcc/configure.bat
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-05-18 21:29:03 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-05-18 21:29:03 +0000
commita3105601baae589f2d8c104da6191ea9fcf90ee1 (patch)
tree1fb06032e04893ff0cee481b5b782a071eef333a /gcc/configure.bat
parenta2aa0fc16f7248a8fad8052c3b1ed75a8c6f790b (diff)
downloadgcc-a3105601baae589f2d8c104da6191ea9fcf90ee1.tar.gz
Fix sed for version.c to handle both with
and without spaces correctly (MS-DOS). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4499 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.bat')
-rw-r--r--gcc/configure.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/configure.bat b/gcc/configure.bat
index 3c7b4a8254d..75e7baff4cc 100644
--- a/gcc/configure.bat
+++ b/gcc/configure.bat
@@ -17,7 +17,7 @@ echo "/\.o[ ]*:/ s/config.status// ">> config.sed
echo "/^target=/ c\ ">> config.sed
echo "target=go32 ">> config.sed
echo "/^version=/ c\ ">> config.sed
-sed -e "s/[^\"]*\"/version=/" -e "s/\ .*//" version.c >> config.sed
+sed -e "s/.*\"\([^ \"]*\)[ \"].*/version=\1/" version.c >> config.sed
echo "s/CC = cc/CC = gcc/ ">> config.sed
echo "s/:\$/: \$/g ">> config.sed
echo "s/^ \ *\.\// go32 / ">> config.sed