From owner-cvs-all Thu Jun 13 15:48: 2 2002 Delivered-To: cvs-all@freebsd.org Received: from hex.databits.net (hex.csh.rit.edu [129.21.60.134]) by hub.freebsd.org (Postfix) with ESMTP id BC12837B40D; Thu, 13 Jun 2002 15:47:51 -0700 (PDT) Received: by hex.databits.net (Postfix, from userid 1001) id 16C9721115; Thu, 13 Jun 2002 18:47:51 -0400 (EDT) Date: Thu, 13 Jun 2002 18:47:51 -0400 From: Pete Fritchman To: Trevor Johnson Cc: portmgr@freebsd.org, Maxim Sobolev , cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: ports/Mk bsd.port.mk Message-ID: <20020613184751.A59258@absolutbsd.org> References: <3D08F0A2.A10E3D52@FreeBSD.org> <20020613184151.O23651-100000@blues.jpj.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020613184151.O23651-100000@blues.jpj.net>; from trevor@jpj.net on Thu, Jun 13, 2002 at 06:45:37PM -0400 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 ++ 13/06/02 18:45 -0400 - Trevor Johnson: | 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. The addition of sed -i came when perl was removed. entropy(~) [186] > sed -i sed: option requires an argument -- i usage: sed script [-Ean] [-i extension] [file ...] sed [-an] [-i extension] [-e script] ... [-f script_file] ... [file ...] entropy(~) [187] > uname -a FreeBSD entropy.csh.rit.edu 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Thu Jun 6 19:03:14 EDT 2002 root@:/usr/obj/usr/src/sys/ENTROPY i386 entropy(~) [188] > hex(~) [18] > sed -i sed: illegal option -- i usage: sed script [-Ean] [file ...] sed [-an] [-e script] ... [-f script_file] ... [file ...] hex(~) [19] > uname -a FreeBSD hex.databits.net 4.5-RC FreeBSD 4.5-RC #0: Fri Jan 25 12:25:35 EST 2002 petef@hex.databits.net:/a/usr/obj/usr/src/sys/HEX i386 hex(~) [20] > -- Pete Fritchman [petef@(databits.net|freebsd.org|csh.rit.edu)] finger petef@databits.net for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message