]> Pileus Git - ~andy/sunrise/blob - scripts/create-stats.sh
Adding web useflag for new pyicq-t package
[~andy/sunrise] / scripts / create-stats.sh
1 #!/bin/bash
2
3 ebuilds=$(ls *-*/* -d)
4
5 #declare -a bugs ebuilds cc
6
7 #a=0
8 #for i in ${ebuildsin}; do
9 #       ebuilds[$a]=${i}
10 #       a=$[ $a+1 ];
11 #done
12
13 # second loop
14 #a=0
15 #for i in ${bugsin}; do
16 #       bugs[$a]=${i}
17 #       a=$[ $a+1 ];
18 #done
19
20 for i in $ebuilds; do
21         bug=$(grep -oE "[0-9]{2}[0-9]+" $i/ChangeLog | tail -n 1)
22         bugz get $bug > /tmp/crst
23         cc=$(grep CC /tmp/crst | sed -e "s/CC          : //");
24         assignee=$(grep Assignee /tmp/crst | sed -e "s/Assignee    : //");
25         echo $i - bug $bug - $assignee - on CC: $cc;
26 done
27