Gentoo Archives: gentoo-dev

From: Aron Griffis <agriffis@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] ekeyword and ordering
Date: Sun, 12 Jun 2005 02:02:44
Message-Id: 20050612021810.GD15882@olive.flatmonk
In Reply to: Re: [gentoo-dev] ekeyword and ordering by Georgi Georgiev
1 Georgi Georgiev wrote: [Sat Jun 11 2005, 08:39:41PM EDT]
2 > Oh. That would still not find the case when ppc64 comes before ppc, but
3 > I agree it was a quick fix.
4
5 You're right (of course). Here's yet another try:
6
7 grep -hr --include=\*.ebuild '^KEYWORDS=' /usr/portage | perl -ne '
8 s/[^[:lower:]\s\d]//g; @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 32% of ebuilds are sorted (6196/19185)
12
13 Regards,
14 Aron
15
16 --
17 Aron Griffis
18 Gentoo Linux Developer