commit:     6f9e65b68174b938714100f34f399844f8d2cb93
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  8 02:57:21 2022 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Feb  8 02:57:21 2022 +0000
URL:        
https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=6f9e65b6

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 <vapier <AT> gentoo.org>

 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}" "$@"
 }
 

Reply via email to