Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2002 08:57:10 -0800
From:      Gordon Tetlow <gordont@gnf.org>
To:        ports@FreeBSD.org
Subject:   REINPLACE_CMD doesn't use -E
Message-ID:  <20021212165710.GD45512@roark.gnf.org>

next in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021212165710.GD45512>