Gentoo Archives: gentoo-dev

From: Aron Griffis <agriffis@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] ekeyword and ordering
Date: Sat, 11 Jun 2005 17:14:51
Message-Id: 20050611124817.GA15882@olive.flatmonk
In Reply to: Re: [gentoo-dev] ekeyword and ordering by Georgi Georgiev
1 Georgi Georgiev wrote: [Fri Jun 10 2005, 08:04:25PM EDT]
2 > maillog: 10/06/2005-13:19:30(-0400): Aron Griffis types
3 > > Btw, here's an interesting statistic which really doesn't add to (or
4 > > detract from, I hope) this discussion...
5 > >
6 > > grep -hr --include=\*.ebuild '^KEYWORDS=' /usr/portage | perl -ne '
7 > > s/[^[:lower:]\s]//; @F = split; @S = sort @F; $sorted++ if "@F" eq "@S";
8 > > END { printf "%d%% of ebuilds are sorted (%d/%d)\n", 100*$sorted/$., $sorted, $. }'
9 > >
10 > > 49% of ebuilds are sorted (9435/19174)
11 >
12 > Your statistic seems to be flawed on a number of occasions. Assume
13 > KEYWORDS="x86 ppc"
14 >
15 > s/[^[:lower:]\s]//;
16
17 You wrote a long email to tell me that I forgot /g, I think. ;-)
18
19 grep -hr --include=\*.ebuild '^KEYWORDS=' /usr/portage | perl -ne '
20 s/[^[:lower:]\s]//g; @F = split; @S = sort @F; $sorted++ if "@F" eq "@S";
21 END { printf "%d%% of ebuilds are sorted (%d/%d)\n", 100*$sorted/$., $sorted, $. }'
22
23 31% of ebuilds are sorted (6028/19185)
24
25 Regards,
26 Aron
27
28 --
29 Aron Griffis
30 Gentoo Linux Developer

Replies

Subject Author
Re: [gentoo-dev] ekeyword and ordering Georgi Georgiev <chutz@×××.net>