Date: Sat, 19 Mar 2005 22:00:19 GMT From: Kirill Ponomarew <krion@voodoo.oberon.net> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/79010: [patch] bsd.port.mk - all-depends-tree target Message-ID: <200503192200.j2JM0JDq040826@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/79010; it has been noted by GNATS. From: Kirill Ponomarew <krion@voodoo.oberon.net> To: Edwin Groothuis <edwin@mavetju.org> Cc: FreeBSD Gnats Submit <freebsd-gnats-submit@freebsd.org> Subject: Re: ports/79010: [patch] bsd.port.mk - all-depends-tree target Date: Sat, 19 Mar 2005 22:57:07 +0100 On Sun, Mar 20, 2005 at 08:50:09AM +1100, Edwin Groothuis wrote: > > On Sat, Mar 19, 2005 at 11:58:43PM +1100, Edwin Groothuis wrote: > > > + echo $${ALL} \ > > > + | ${SED} -e 's,${PORTSDIR}/,,g' \ > > > + | ${FMT} -1 \ > > > + | ${SORT} -u \ > > > + | perl -e 'while (<>) { ~s/.*?\|/|\\_/g; ~s/\|\\_\|/| |/g; ~s/\|\\_\|/| |/g; print; }'; \ > > > > Which means you can't use target if perl isn't installed, I think > > awk would be quite suitable in this case. > > Make describe doesn't work neither if perl isn't installed. > > But you are right partly, it should have used ${PERL}. > > I have tried it in sed(1), but sed is too greedy with the ".*" while > perl understands the ".*?". Ah ok, np, now I understand the reason, I'll try to play with awk a little, to get it :) -Kirill
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503192200.j2JM0JDq040826>