Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] ekeyword and ordering
Date: Sun, 12 Jun 2005 00:39:32
Message-Id: 20050612003940.GA30425@tiger.gg3.net
In Reply to: Re: [gentoo-dev] ekeyword and ordering by Aron Griffis
1 maillog: 11/06/2005-08:48:17(-0400): Aron Griffis types
2 > Georgi Georgiev wrote: [Fri Jun 10 2005, 08:04:25PM EDT]
3 > > maillog: 10/06/2005-13:19:30(-0400): Aron Griffis types
4 > > > Btw, here's an interesting statistic which really doesn't add to (or
5 > > > detract from, I hope) this discussion...
6 > > >
7 > > > grep -hr --include=\*.ebuild '^KEYWORDS=' /usr/portage | perl -ne '
8 > > > s/[^[:lower:]\s]//; @F = split; @S = sort @F; $sorted++ if "@F" eq "@S";
9 > > > END { printf "%d%% of ebuilds are sorted (%d/%d)\n", 100*$sorted/$., $sorted, $. }'
10 > > >
11 > > > 49% of ebuilds are sorted (9435/19174)
12 > >
13 > > Your statistic seems to be flawed on a number of occasions. Assume
14 > > KEYWORDS="x86 ppc"
15 > >
16 > > s/[^[:lower:]\s]//;
17 >
18 > You wrote a long email to tell me that I forgot /g, I think. ;-)
19 >
20 > grep -hr --include=\*.ebuild '^KEYWORDS=' /usr/portage | perl -ne '
21 > s/[^[:lower:]\s]//g; @F = split; @S = sort @F; $sorted++ if "@F" eq "@S";
22 > END { printf "%d%% of ebuilds are sorted (%d/%d)\n", 100*$sorted/$., $sorted, $. }'
23 >
24 > 31% of ebuilds are sorted (6028/19185)
25
26 Oh. That would still not find the case when ppc64 comes before ppc, but
27 I agree it was a quick fix.
28
29 --
30 -* Georgi Georgiev -* I wish I was a sex-starved manicurist -*
31 *- chutz@×××.net *- found dead in the Bronx!! *-
32 -* +81(90)2877-8845 -* -*

Replies

Subject Author
Re: [gentoo-dev] ekeyword and ordering Aron Griffis <agriffis@g.o>