From owner-freebsd-ports@FreeBSD.ORG Wed Jan 28 04:48:42 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCA8B16A4CE for ; Wed, 28 Jan 2004 04:48:42 -0800 (PST) Received: from postman.arcor.de (postman1.arcor-online.net [151.189.0.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31A5B43D31 for ; Wed, 28 Jan 2004 04:48:39 -0800 (PST) (envelope-from eikemeier@fillmore-labs.com) Received: from fillmore.dyndns.org (port-212-202-51-21.reverse.qsc.de [212.202.51.21]) (authenticated bits=0)i0SCmbu9023949 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 28 Jan 2004 13:48:37 +0100 (MET) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.30; FreeBSD) id 1Alp7V-000Elz-44; Wed, 28 Jan 2004 13:48:37 +0100 Message-ID: <4017AFA4.4090801@fillmore-labs.com> Date: Wed, 28 Jan 2004 13:48:36 +0100 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Alexander Leidinger References: <20040127145518.33cd1648@Magellan.Leidinger.net> <20040127234019.GA70137@xor.obsecurity.org> <4016FAEA.8010308@fillmore-labs.com> <20040128123440.2e0e1389@Magellan.Leidinger.net> In-Reply-To: <20040128123440.2e0e1389@Magellan.Leidinger.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: ports@freebsd.org Subject: Re: Do we need a new major category (latex)? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 12:48:42 -0000 Alexander Leidinger wrote: > On Wed, 28 Jan 2004 00:57:30 +0100 > Oliver Eikemeier wrote: > > [ls -1 vs. ls -d] > >>Otherwise you'll count files, CVS directories and empty lines. We have >>'only' 216 ports in print... > > Argh... yes. I make this error _every_ time. In case I want to see the > files I notice it immediately, but in this case I just piped the output > into wc without looking at the output. > > The benchmark category has 30 entries (ls /usr/ports/benchmarks | grep > -vE '(pkg|CVS|Makefile)' |wc -l) This is true, but no LaTeX benchmarks... and there are 42 packages with latex in > the name (ls -d */*latex*| grep -vE '(pkg|CVS|Makefile)' |wc -l), You don't need the grep here, since pkg|CVS|Makefile doesn't match *latex*, and you may want to count mylatexpkg. > and 36 > additional portnames with "tex" but without "text" (yes, this excludes > texproc: ls -d */*tex*| grep -vE '(pkg|CVS|Makefile|text)' |wc -l), the problem with all that number games is that I get distfiles/latex_[...].tar.gz in ls -d */*latex*. May I suggest: awk -F\| ' \ BEGIN {IGNORECASE=1} \ $1 ~ /(La|te)TeX|TeX[^ti]/ \ ' INDEX | wc -l > so I think this is still a good idea (we don't have teTeX and similar ports > in this listing). I never questioned the fact that a TeX category would be a good thing, only your data is weird. As a sign of conciliation I send you a semi-automated patch: awk -F\| ' \ BEGIN {IGNORECASE=1} \ $1 ~ /(La|te)TeX|TeX[^ti]/ {print $2 "/Makefile"} \ ' INDEX | xargs sed -i ".orig" -e 's/^CATEGORIES.*$/& tex/' Have fun Oliver