Date: Thu, 13 Jun 2002 18:45:37 -0400 (EDT) From: Trevor Johnson <trevor@jpj.net> To: portmgr@freebsd.org, Maxim Sobolev <sobomax@freebsd.org> Cc: cvs-committers@freebsd.org, <cvs-all@freebsd.org> Subject: Re: cvs commit: ports/Mk bsd.port.mk Message-ID: <20020613184151.O23651-100000@blues.jpj.net> In-Reply-To: <3D08F0A2.A10E3D52@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Maxim Sobolev wrote: > 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. http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk.diff?&r1=1.413&r2=1.4 14&f=u Please explain why this macro works differently depending on the version of FreeBSD. The sed command is available on all FreeBSD versions, not just -CURRENT. Using only sed, never perl, would make this simpler to use. -- Trevor Johnson 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?20020613184151.O23651-100000>