summaryrefslogtreecommitdiff
blob: 7c7417f7efe95125848fdfd8b8b3b1dd2a08d79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

ebuilds=$(ls *-*/* -d)

#declare -a bugs ebuilds cc

#a=0
#for i in ${ebuildsin}; do
#	ebuilds[$a]=${i}
#	a=$[ $a+1 ];
#done
# second loop
#a=0
#for i in ${bugsin}; do
#	bugs[$a]=${i}
#	a=$[ $a+1 ];
#done

for i in $ebuilds; do
	bug=$(grep -oE "[0-9]{2}[0-9]+" $i/ChangeLog | tail -n 1)
	bugz get $bug > /tmp/crst
	cc=$(grep CC /tmp/crst | sed -e "s/CC          : //");
	assignee=$(grep Assignee /tmp/crst | sed -e "s/Assignee    : //");
	echo $i - bug $bug - $assignee - on CC: $cc;
done