1 |
commit: d933c212232aee8086cc8aa1ef0904a5ed841f1b |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 2 14:07:57 2013 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 2 14:07:57 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=d933c212 |
7 |
|
8 |
Sort output by EAPI usage. |
9 |
|
10 |
--- |
11 |
eapi_usage.sh | 1 + |
12 |
1 file changed, 1 insertion(+) |
13 |
|
14 |
diff --git a/eapi_usage.sh b/eapi_usage.sh |
15 |
index 1e8b5f0..3e72883 100755 |
16 |
--- a/eapi_usage.sh |
17 |
+++ b/eapi_usage.sh |
18 |
@@ -15,6 +15,7 @@ find /usr/portage/metadata/md5-cache -type f -exec awk ' |
19 |
' '{}' '+' | awk ' |
20 |
{ eapi[$1]+=$2; total+=$2 } |
21 |
END { |
22 |
+ PROCINFO["sorted_in"]="@val_num_desc" |
23 |
for (i in eapi) { |
24 |
s=""; for (j=1; j<eapi[i]*50./total+0.5; j++) s=s"#" |
25 |
printf "EAPI %s: %7d ebuilds (%5.02f%%) %s\n", |