Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: Gentoo-Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] CVS commits
Date: Sun, 29 Feb 2004 00:29:28
Message-Id: 1078014619.11279.25.camel@nosferatu.lan
In Reply to: [gentoo-dev] CVS commits by Martin Schlemmer
1 On Sun, 2004-02-29 at 02:13, Martin Schlemmer wrote:
2
3 > Script used:
4 >
5 > --
6 > #!/bin/bash
7 >
8 > cd gentoo-src; cvs log >../log 2>/dev/null
9 > cd ../gentoo-src; cvs log >../log 2>/dev/nul
10
11 Should be:
12
13 cd ../gentoo-src; cvs log >>../log 2>/dev/null
14
15 > cd ../gentoo-projects; cvs log >../log 2>/dev/nul
16
17 Should be:
18
19 cd ../gentoo-projects; cvs log >>../log 2>/dev/null
20
21
22 And, yes, statistics is still correct, as I quickly threw
23 commandline into script *after* I got the statistics ...
24
25 > cd ..
26 >
27 > grep -e 'author\:[[:space:]]*.*\;' log | \
28 > sed -e 's|.*author: \(.*\);[[:space:]]*state:.*|\1|g' | \
29 > awk '{
30 > if (!($0 in COUNT)) {
31 > count += 1
32 > DEVSLIST[count] = $0
33 > }
34 > COUNT[$0] += 1
35 > }
36 >
37 > END {
38 > asort(DEVSLIST)
39 > for (x = 0; x <= count; x++)
40 > printf "%-15s: %6s\n", DEVSLIST[x], COUNT[DEVSLIST[x]]
41 > }'
42 > --
43 >
44 >
45 > Cheers,
46
47 --
48
49 Martin Schlemmer
50 Gentoo Linux Developer, Desktop/System Team Developer
51 Cape Town, South Africa

Attachments

File name MIME type
signature.asc application/pgp-signature