summaryrefslogtreecommitdiff
blob: 273c7bdc81da227e4471094be5e33430068c9000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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)
	echo $i - bug $bug
done