[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gettext 0.10.39 & bison version
From: |
Karl Berry |
Subject: |
gettext 0.10.39 & bison version |
Date: |
Wed, 12 Sep 2001 12:35:23 -0400 |
The check for bison's version in the gettext.m4 included in gettext
0.10.39 does not work. I believe this is because there is an extra
space in the pattern.
as distributed:
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .*
\([0-9]*\.[0-9.]*\).*$/\1/p'`
should be:
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.*
\([0-9]*\.[0-9.]*\).*$/\1/p'`
The string we're trying to match is, for example:
bison (GNU Bison) 1.29
which has only one space after the "Bison)" and before the version number.
Also, I wonder if just taking the last word would be better. What if
there were a's or b's in the version number, for pretests or whatever?
Something like: s/^.*Bison.* \([^ ]*\)$/\1/p
Just a thought.
Thanks,
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gettext 0.10.39 & bison version,
Karl Berry <=