Date: Sat, 08 Jan 2000 17:07:57 +0900 From: Akinori MUSHA aka knu <knu@idaemons.org> To: asami@FreeBSD.ORG Cc: Kris Kennaway <kris@hub.freebsd.org>, freebsd-ports@FreeBSD.ORG, sumikawa@ebina.hitachi.co.jp, committers@FreeBSD.ORG Subject: Re: IPv6-enable ports Message-ID: <86n1qhm1eq.wl@localhost.local.idaemons.org> In-Reply-To: In your message of "07 Jan 2000 18:23:33 -0800" <vqcyaa1e1y2.fsf@silvia.hip.berkeley.edu> References: <Pine.BSF.4.21.0001071810430.91986-100000@hub.freebsd.org> <vqcyaa1e1y2.fsf@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, At 07 Jan 2000 18:23:33 -0800, Satoshi - Ports Wraith - Asami <asami@FreeBSD.ORG> wrote: > * This sounds good to me. BTW, whats the easiest way to find a list of ports > * in a virtual category? > >> awk '$6 ~ "elisp" {print}' /usr/ports/INDEX > > (Field #6 of INDEX is the category) At #7 actually. Below prints a list of ports in the `elisp' category: $ awk -F\| '$7 ~ "elisp" {print $2}' /usr/ports/INDEX /usr/ports/audio/mpg123.el /usr/ports/databases/gnats /usr/ports/editors/apel-emacs / (snip) /usr/ports/www/css-mode.el /usr/ports/www/w3 /usr/ports/x11-fonts/bitmap-font If you want more strict match, do as follows: $ perl -F'\|' -ane 'grep $_ eq "elisp", split " ", $F[6] \ and print "$F[1]\n"' /usr/ports/INDEX below prints a list of categories including virtual ones: $ perl -F'\|' -ane 'for (split " ", $F[6]) { $x{$_} = 1 } \ END { $, = $\ = "\n"; print sort keys %x }' \ /usr/ports/INDEX and below prints a list of virtual categories: $ perl -F'\|' -ane 'for (split " ", $F[6]) { $x{$_} = 1 } \ END { $, = $\ = "\n"; print grep !-d, sort keys %x }' \ /usr/ports/INDEX Should we have some targets like above in /usr/ports/Makefile? -- / /__ __ / ) ) ) ) / http://www.idaemons.org/knu/ Akinori MUSHA aka / (_ / ( (__( mailto:knu@idaemons.org "We are but hungry.. Associated Ita-meshi Daemons!" http://www.idaemons.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86n1qhm1eq.wl>