(version): Use sed to extract. Ignore excess after space.
From-SVN: r2578
This commit is contained in:
parent
6c2e3cab3d
commit
e9e61e932f
@ -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 = .
|
||||
|
Loading…
Reference in New Issue
Block a user