ports/79010: [patch] bsd.port.mk - all-depends-tree target
Kirill Ponomarew
krion at voodoo.oberon.net
Sat Mar 19 22:00:19 UTC 2005
The following reply was made to PR ports/79010; it has been noted by GNATS.
From: Kirill Ponomarew <krion at voodoo.oberon.net>
To: Edwin Groothuis <edwin at mavetju.org>
Cc: FreeBSD Gnats Submit <freebsd-gnats-submit at 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
More information about the freebsd-ports-bugs
mailing list