Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2002 14:52:24 -0300
From:      Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To:        Maxim Sobolev <sobomax@FreeBSD.org>, Trevor Johnson <trevor@jpj.net>, Juli Mallett <jmallett@FreeBSD.ORG>, Pete Fritchman <petef@absolutbsd.org>, portmgr@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: ports/Mk bsd.port.mk
Message-ID:  <20020614175247.6187.qmail@exxodus.fedaykin.here>
In-Reply-To: <20020614131359.GT53809@squall.waterspout.com>; from will@csociety.org on Fri, Jun 14, 2002 at 08:13:37AM -0500
References:  <20020614033017.I8221-100000@blues.jpj.net> <3D09DB11.8362727A@FreeBSD.org> <20020614131359.GT53809@squall.waterspout.com>

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

On Fri, Jun 14, 2002 at 08:13:37AM -0500, Will Andrews wrote:
> On Fri, Jun 14, 2002 at 03:01:21PM +0300, Maxim Sobolev wrote:
> > I should admit that it looks like the most realistic plan out there.
> > The main problems are with $ and @ characters, which have a special
> > meaning for perl but no such meaning for sed(1), so that any, even
> > simple, regexp that uses those chars *could not* be modified to work
> > uniformly with both perl and sed. 
> 
> I use that kind of RE in some of my ports.  I also like
> jmallett's idea, but I would prefer to provide sources for
> sed(1) rather than a binary.

	One thing, is there a problem on adding

--- bsd.port.mk.orig	Fri Jun 14 14:49:08 2002
+++ bsd.port.mk	Fri Jun 14 14:49:18 2002
@@ -627,7 +627,7 @@
 .if ${OSVERSION} <= 500033
 REINPLACE_CMD?=	${PERL} -p -i.bak
 .else
-REINPLACE_CMD?=	${SED}  -i.bak
+REINPLACE_CMD?=	${SED}  -i.bak -E
 .endif
 
 # Get the object format.

	Since I am keep stumbling on that. Most of my REs are
extended SED so I keep rewriting them (becoming veryyy looong) to
have the same effect in both perl and sed.
	Is there a reason why -E can't be added to the sed line?

	For instance, the following works on both if we add -E

	-e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!'

	Regards,

-- 
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
Computer Science Undergraduate | FreeBSD Committer | CS Developer
flames to beloved devnull@someotherworldbeloworabove.org
feature, n: a documented bug | bug, n: an undocumented feature

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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