aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-30 02:26:19 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-30 02:26:19 -0500
commitb5ac3795546836195f926d62270f4b1d0dca5766 (patch)
treea69f68ee99bb529e938672abea31bcec2165351d
parentautoconf-wrapper: support WANT_AUTOCONF=latest (diff)
downloadautotools-wrappers-b5ac3795546836195f926d62270f4b1d0dca5766.tar.gz
autotools-wrappers-b5ac3795546836195f926d62270f4b1d0dca5766.tar.bz2
autotools-wrappers-b5ac3795546836195f926d62270f4b1d0dca5766.zip
autoconf-wrapper: use -E with sed
The -E option to enable POSIX ERE is more portable. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xac-wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ac-wrapper.sh b/ac-wrapper.sh
index d225eca..29a5d87 100755
--- a/ac-wrapper.sh
+++ b/ac-wrapper.sh
@@ -131,7 +131,7 @@ fi
# autodetect helpers
#
acprereq_version() {
- sed -n -r \
+ sed -n -E \
-e '/^\s*(#|dnl)/d' \
-e '/AC_PREREQ/s:.*AC_PREREQ\s*\(\[?\s*([0-9.]+)\s*\]?\):\1:p' \
"$@" |
@@ -141,7 +141,7 @@ acprereq_version() {
generated_version() {
local re='^# Generated (by (GNU )?Autoconf|automatically using autoconf version) ([0-9.]+).*'
- sed -n -r "/${re}/{s:${re}:\3:;p;q}" "$@"
+ sed -n -E "/${re}/{s:${re}:\3:;p;q}" "$@"
}
#