summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2022-12-07 20:43:47 +0000
committerSam James <sam@gentoo.org>2022-12-07 20:46:03 +0000
commitafe80def609c91d72df73837ce2c51fed8b69f28 (patch)
treed6a937eb77d9b0f32521bd22498ba60e1103278d
parentam-wrapper.sh: handle 9999 too (diff)
downloadautotools-wrappers-at-20221207.tar.gz
autotools-wrappers-at-20221207.tar.bz2
autotools-wrappers-at-20221207.zip
ac-wrapper.sh: fix autoconf regexat-20221207
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@aarsen.me> Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xac-wrapper.sh2
1 files changed, 1 insertions, 1 deletions
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}" "$@"
}