diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2006-07-25 11:42:29 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2006-07-25 11:42:29 +0000 |
commit | 3a2a88ce1f589e510e56dcb2b825e140a4669b34 (patch) | |
tree | f80e084ca635c1472d8098811be74e1c1d382abc /scripts | |
parent | mail-filter/mimedefang: Fix for enewuser broken permissions, cosmetics (diff) | |
download | sunrise-reviewed-3a2a88ce1f589e510e56dcb2b825e140a4669b34.tar.gz sunrise-reviewed-3a2a88ce1f589e510e56dcb2b825e140a4669b34.tar.bz2 sunrise-reviewed-3a2a88ce1f589e510e56dcb2b825e140a4669b34.zip |
new stats script. Not very useful yet. I am thinking of a better solution.
svn path=/sunrise/; revision=697
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-stats.sh | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/scripts/create-stats.sh b/scripts/create-stats.sh index e5aaabfab..250112fab 100755 --- a/scripts/create-stats.sh +++ b/scripts/create-stats.sh @@ -1,27 +1,27 @@ #!/bin/bash -bugsin=$(ls */*/ChangeLog -d | xargs grep -i bug | grep -oE "[0-9]{2}[0-9]+") -ebuildsin=$(ls */*/ChangeLog -d | xargs grep -il bug | sed -e "s:/ChangeLog::") +ebuilds=$(ls *-*/* -d) -declare -a bugs ebuilds cc +#declare -a bugs ebuilds cc -a=0 -for i in ${ebuildsin}; do - ebuilds[$a]=${i} - a=$[ $a+1 ]; -done +#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 +#a=0 +#for i in ${bugsin}; do +# bugs[$a]=${i} +# a=$[ $a+1 ]; +#done -for ((i=0;i<${#ebuilds[@]};i++)) do - cc[$i]=$(wget bugs.gentoo.org/${bugs[$i]} -q -O - | sed -e "s:@:@:" | grep "value=.*@gentoo.org" | sed -e 's:[^"]*"\([^@]*\).*:\1:' | sed "s:maintainer-wanted::"); - if [ -z "$1" ] || [ "${cc[$i]/$1}" != "${cc[$i]}" ]; then - echo ${ebuilds[$i]} - bug ${bugs[$i]} - on CC: ${cc[$i]}; - fi +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 |