aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-02-07 21:57:21 -0500
committerMike Frysinger <vapier@gentoo.org>2022-02-07 21:57:21 -0500
commit6f9e65b68174b938714100f34f399844f8d2cb93 (patch)
tree42bc907feec9d633067c5d23bd95ab5cfd2dc8f3 /ac-wrapper.sh
parentharmonize wrappers a little (diff)
downloadautotools-wrappers-6f9e65b68174b938714100f34f399844f8d2cb93.tar.gz
autotools-wrappers-6f9e65b68174b938714100f34f399844f8d2cb93.tar.bz2
autotools-wrappers-6f9e65b68174b938714100f34f399844f8d2cb93.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>
Diffstat (limited to 'ac-wrapper.sh')
-rwxr-xr-xac-wrapper.sh2
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}" "$@"
}