From 6f9e65b68174b938714100f34f399844f8d2cb93 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 7 Feb 2022 21:57:21 -0500 Subject: autoconf-wrapper: fix version detection 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 --- ac-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" "$@" } -- cgit v1.2.3-65-gdbad