From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Mar 19 22:00:19 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D591616A4CE for ; Sat, 19 Mar 2005 22:00:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3A9C43D39 for ; Sat, 19 Mar 2005 22:00:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2JM0JL0040827 for ; Sat, 19 Mar 2005 22:00:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2JM0JDq040826; Sat, 19 Mar 2005 22:00:19 GMT (envelope-from gnats) Date: Sat, 19 Mar 2005 22:00:19 GMT Message-Id: <200503192200.j2JM0JDq040826@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Kirill Ponomarew Subject: Re: ports/79010: [patch] bsd.port.mk - all-depends-tree target X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kirill Ponomarew List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 22:00:19 -0000 The following reply was made to PR ports/79010; it has been noted by GNATS. From: Kirill Ponomarew To: Edwin Groothuis Cc: FreeBSD Gnats Submit 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