From owner-freebsd-ports Thu Dec 12 8:57:13 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A41F37B401 for ; Thu, 12 Dec 2002 08:57:11 -0800 (PST) Received: from ns2.gnf.org (ns2.gnf.org [63.196.132.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBDA343EB2 for ; Thu, 12 Dec 2002 08:57:10 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch02.lj.gnf.org [172.25.10.20]) by ns2.gnf.org (8.12.3/8.12.3) with ESMTP id gBCGhetk057476 for ; Thu, 12 Dec 2002 08:43:40 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Thu, 12 Dec 2002 08:57:10 -0800 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.6/8.12.6) with ESMTP id gBCGvAa7067191 for ; Thu, 12 Dec 2002 08:57:10 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.6/8.12.6/Submit) id gBCGvAUk067190 for ports@FreeBSD.org; Thu, 12 Dec 2002 08:57:10 -0800 (PST) (envelope-from gtetlow) Date: Thu, 12 Dec 2002 08:57:10 -0800 From: Gordon Tetlow To: ports@FreeBSD.org Subject: REINPLACE_CMD doesn't use -E Message-ID: <20021212165710.GD45512@roark.gnf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PUgybOivvlPvn0/l" Content-Disposition: inline User-Agent: Mutt/1.4i X-OriginalArrivalTime: 12 Dec 2002 16:57:10.0649 (UTC) FILETIME=[83023E90:01C2A1FF] Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --PUgybOivvlPvn0/l Content-Type: multipart/mixed; boundary="uLm21ivgZj9Xvi41" Content-Disposition: inline --uLm21ivgZj9Xvi41 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've attached a small patch that adds the -E flag to REINPLACE_CMD. This gives a much larger regex set when doing transformations and allows us to drop REINPLACE_CMD in a lot of places where perl is currently used. -gordon PS Please cc me on any reply, I'm not subscribed. --uLm21ivgZj9Xvi41 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="bsd.port.mk.diff" Content-Transfer-Encoding: quoted-printable --- ports/Mk/bsd.port.mk.orig Thu Dec 5 09:08:48 2002 +++ ports/Mk/bsd.port.mk Thu Dec 12 08:53:58 2002 @@ -1244,7 +1244,7 @@ =20 # Special macro for doing in-place file editing using regexps .if defined(USE_REINPLACE) -REINPLACE_ARGS?=3D -i.bak +REINPLACE_ARGS?=3D -E -i.bak .if ${OSVERSION} < 460101 || ( ${OSVERSION} >=3D 500000 && ${OSVERSION} < = 500036 ) BUILD_DEPENDS+=3D ${LOCALBASE}/bin/sed_inplace:${PORTSDIR}/textproc/sed_in= place REINPLACE_CMD?=3D ${LOCALBASE}/bin/sed_inplace ${REINPLACE_ARGS} --uLm21ivgZj9Xvi41-- --PUgybOivvlPvn0/l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9+L/mRu2t9DV9ZfsRAnnMAJ9K4/pysZ2PB9UiKdctD2fDbnFC0QCeMpMZ OXzyvnDRsKz0AM0dkmCFABQ= =+Ji/ -----END PGP SIGNATURE----- --PUgybOivvlPvn0/l-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message