From owner-cvs-all Thu Jun 13 12:20:30 2002 Delivered-To: cvs-all@freebsd.org Received: from sdns.kv.ukrtel.net (sdns.kv.ukrtel.net [195.5.27.246]) by hub.freebsd.org (Postfix) with ESMTP id CC3BD37B401; Thu, 13 Jun 2002 12:20:24 -0700 (PDT) Received: from vega.vega.com (195.5.51.243 [195.5.51.243]) by sdns.kv.ukrtel.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M2L7D6GG; Thu, 13 Jun 2002 22:22:26 +0300 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id g5DJKKb09048; Thu, 13 Jun 2002 22:20:20 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3D08F0A2.A10E3D52@FreeBSD.org> Date: Thu, 13 Jun 2002 22:21:06 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/Mk bsd.port.mk References: <200206131820.g5DIKfB53863@freefall.freebsd.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit 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 Maxim Sobolev wrote: > > sobomax 2002/06/13 11:20:41 PDT > > Modified files: > Mk bsd.port.mk > Log: > Add ${REINPLACE_CMD}, which will be used to get rid of depencency on perl > in current. Use it like the following: > > ${REINPLACE_CMD} -e "foo" -e "bar" ${WRKSRC}/somefile > > Approved by: portmgr Be warned: it is not that easy to actually use it for complex regexs as you need to produce regex that works in the same way with perl and sed. For example regular expression which now looks like "s|\$\(foo\)/baz|\$\(bar\)/baz|g" and used for the most GNOME ports should be rewriten as "s|[$$][(]foo[)]/baz|\$$(bar)/baz|g". Therefore, simple sweep is nearly impossible and all individual maintainers are encouraged to fix their ports by themselves. And don't forget to test results both with perl and sed. Thanks! -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message