From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C8359158087 for ; Sun, 30 Jan 2022 09:24:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B75982BC039; Sun, 30 Jan 2022 09:24:23 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B16C2BC039 for ; Sun, 30 Jan 2022 09:24:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B601342B34 for ; Sun, 30 Jan 2022 09:24:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 55E871EF for ; Sun, 30 Jan 2022 09:24:21 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1643527579.b5ac3795546836195f926d62270f4b1d0dca5766.vapier@gentoo> Subject: [gentoo-commits] proj/autotools-wrappers:main commit in: / X-VCS-Repository: proj/autotools-wrappers X-VCS-Files: ac-wrapper.sh X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: b5ac3795546836195f926d62270f4b1d0dca5766 X-VCS-Branch: main Date: Sun, 30 Jan 2022 09:24:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a2cb0b54-c15b-45fb-a463-f3ce555cb566 X-Archives-Hash: 053ebc839d436f8b11eaab2e2390390f commit: b5ac3795546836195f926d62270f4b1d0dca5766 Author: Mike Frysinger gentoo org> AuthorDate: Sun Jan 30 07:26:19 2022 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Jan 30 07:26:19 2022 +0000 URL: https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=b5ac3795 autoconf-wrapper: use -E with sed The -E option to enable POSIX ERE is more portable. Signed-off-by: Mike Frysinger gentoo.org> ac-wrapper.sh | 4 ++-- 1 file 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}" "$@" } #