commit:     afe80def609c91d72df73837ce2c51fed8b69f28
Author:     Arsen Arsenović <arsen <AT> aarsen <DOT> me>
AuthorDate: Wed Dec  7 20:43:47 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec  7 20:46:03 2022 +0000
URL:        
https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=afe80def

ac-wrapper.sh: fix autoconf regex

We need to optionally match the ., not require digits following period in 
version group.

Bug: https://bugs.gentoo.org/870169
Fixes: 6f9e65b68174b938714100f34f399844f8d2cb93
Signed-off-by: Arsen Arsenović <arsen <AT> aarsen.me>
Signed-off-by: Sam James <sam <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 fb10d1c..9499ace 100755
--- a/ac-wrapper.sh
+++ b/ac-wrapper.sh
@@ -147,7 +147,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]+.)+[0-9]+).*$'
        sed -n -E "/${re}/{s:${re}:\3:;p;q}" "$@"
 }
 

Reply via email to