diff options
author | 2022-01-30 02:26:19 -0500 | |
---|---|---|
committer | 2022-01-30 02:26:19 -0500 | |
commit | b5ac3795546836195f926d62270f4b1d0dca5766 (patch) | |
tree | a69f68ee99bb529e938672abea31bcec2165351d | |
parent | autoconf-wrapper: support WANT_AUTOCONF=latest (diff) | |
download | autotools-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-x | ac-wrapper.sh | 4 |
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}" "$@" } # |