Date: Thu, 13 Jun 2002 22:21:06 +0300 From: Maxim Sobolev <sobomax@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/Mk bsd.port.mk Message-ID: <3D08F0A2.A10E3D52@FreeBSD.org> References: <200206131820.g5DIKfB53863@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D08F0A2.A10E3D52>
