From: Richard Stallman Date: Fri, 23 Oct 1992 22:34:44 +0000 (+0000) Subject: (version): Use sed to extract. Ignore excess after space. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9e61e932fa4dcbe3951d366772c5689714905e5;p=gcc.git (version): Use sed to extract. Ignore excess after space. From-SVN: r2578 --- diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 363e1893846..b91e0701d04 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -126,7 +126,7 @@ PREMADE_ATTRTAB = target= ... `configure' substitutes actual target name here. xmake_file= ... `configure' substitutes actual x- file name here. tmake_file= ... `configure' substitutes actual t- file name here. -version=`awk '{printf "%s", substr ($$4, 2, length ($$4) - 3); }' $(srcdir)/version.c` +version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < version.c` # Directory where sources are, from where we are. srcdir = .