reviewstats/genresults-reviewers.sh
Russell Bryant 2a137e7821 Split up generation into 2 scripts
Change-Id: Ib9bd1039922f5338fdea2348d9f221709c2fafde
Reviewed-on: https://review.openstack.org/36336
Approved: Russell Bryant <rbryant@redhat.com>
Reviewed-by: Russell Bryant <rbryant@redhat.com>
Tested-by: Jenkins
2013-07-09 20:20:32 +00:00

27 lines
545 B
Bash
Executable File

#!/bin/bash
projects=$1
all=0
if [ "$projects" = "" ] ; then
projects=projects/*.json
all=1
fi
mkdir -p results
rm -f results/*-reviewers-*
for project in ${projects} ; do
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
for time in 30 90 180 ; do
(date -u && echo && ./reviewers.py -p ${project} -d ${time}) > results/${project_base}-reviewers-${time}.txt
done
done
if [ "${all}" = "1" ] ; then
for time in 30 90 180 ; do
(date -u && echo && ./reviewers.py -a -d ${time}) > results/all-reviewers-${time}.txt
done
fi