Date: Sat, 19 Mar 2005 22:00:14 GMT From: Edwin Groothuis <edwin@mavetju.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/79010: [patch] bsd.port.mk - all-depends-tree target Message-ID: <200503192200.j2JM0Ees040797@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: Edwin Groothuis <edwin@mavetju.org> To: Kirill Ponomarew <krion@voodoo.oberon.net> Cc: FreeBSD Gnats Submit <freebsd-gnats-submit@freebsd.org> Subject: Re: ports/79010: [patch] bsd.port.mk - all-depends-tree target Date: Sun, 20 Mar 2005 08:50:09 +1100 On Sat, Mar 19, 2005 at 01:50:06PM +0000, Kirill Ponomarew wrote: > 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.org > Subject: Re: ports/79010: [patch] bsd.port.mk - all-depends-tree target > Date: Sat, 19 Mar 2005 14:49:29 +0100 > > 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 ".*?". Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503192200.j2JM0Ees040797>