From owner-cvs-all Fri Jun 14 10:53:33 2002 Delivered-To: cvs-all@freebsd.org Received: from heaven.gigo.com (heaven.gigo.com [64.57.102.22]) by hub.freebsd.org (Postfix) with ESMTP id EAEF837B414 for ; Fri, 14 Jun 2002 10:53:23 -0700 (PDT) Received: from 200-163-006-125-bsace7003.dsl.telebrasilia.net.br (200-163-006-125-bsace7003.dsl.telebrasilia.net.br [200.163.6.125]) by heaven.gigo.com (Postfix) with ESMTP id 43D72B969 for ; Fri, 14 Jun 2002 10:53:22 -0700 (PDT) Received: (qmail 6188 invoked by uid 1001); 14 Jun 2002 17:52:47 -0000 Message-ID: <20020614175247.6187.qmail@exxodus.fedaykin.here> Date: Fri, 14 Jun 2002 14:52:24 -0300 From: Mario Sergio Fujikawa Ferreira To: Maxim Sobolev , Trevor Johnson , Juli Mallett , Pete Fritchman , portmgr@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: ports/Mk bsd.port.mk References: <20020614033017.I8221-100000@blues.jpj.net> <3D09DB11.8362727A@FreeBSD.org> <20020614131359.GT53809@squall.waterspout.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020614131359.GT53809@squall.waterspout.com>; from will@csociety.org on Fri, Jun 14, 2002 at 08:13:37AM -0500 X-Operating-System: FreeBSD 4.6-PRERELEASE X-Disclaimer: I hope you find what you are looking for... in life :) Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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