diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-02-07 21:57:21 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-07 21:57:21 -0500 |
commit | 6f9e65b68174b938714100f34f399844f8d2cb93 (patch) | |
tree | 42bc907feec9d633067c5d23bd95ab5cfd2dc8f3 | |
parent | harmonize wrappers a little (diff) | |
download | autotools-wrappers-at-20221118.tar.gz autotools-wrappers-at-20221118.tar.bz2 autotools-wrappers-at-20221118.zip |
autoconf-wrapper: fix version detectionat-20221118
Make sure we chop the trailing period from the version string to fix
comparing to installed versions. Otherwise, "2.69." will never match
"2.69".
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | ac-wrapper.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ac-wrapper.sh b/ac-wrapper.sh index ce576c6..5a489a2 100755 --- a/ac-wrapper.sh +++ b/ac-wrapper.sh @@ -146,7 +146,7 @@ acprereq_version() { } generated_version() { - local re='^# Generated (by (GNU )?Autoconf|automatically using autoconf version) ([0-9.]+).*' + local re='^# Generated (by (GNU )?Autoconf|automatically using autoconf version) ([0-9.]+)\..*' sed -n -E "/${re}/{s:${re}:\3:;p;q}" "$@" } |