Move project json files into a directory.
This commit is contained in:
parent
05d4e55b3b
commit
ca663198e0
@ -4,14 +4,14 @@ projects=$1
|
||||
all=0
|
||||
|
||||
if [ "$projects" = "" ] ; then
|
||||
projects=*.json
|
||||
projects=projects/*.json
|
||||
all=1
|
||||
fi
|
||||
|
||||
mkdir -p results
|
||||
|
||||
for project in ${projects} ; do
|
||||
project_base=$(echo ${project} | cut -f1 -d'.')
|
||||
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
|
||||
(date -u && echo && ./openreviews.py -p ${project}) > results/${project_base}-openreviews.txt
|
||||
for time in 30 90 180 ; do
|
||||
(date -u && echo && ./reviewers.py -p ${project} -d ${time}) > results/${project_base}-reviewers-${time}.txt
|
||||
|
@ -27,7 +27,7 @@ import utils
|
||||
|
||||
|
||||
optparser = optparse.OptionParser()
|
||||
optparser.add_option('-p', '--project', default='nova.json',
|
||||
optparser.add_option('-p', '--project', default='projects/nova.json',
|
||||
help='JSON file describing the project to generate stats for')
|
||||
optparser.add_option('-a', '--all', action='store_true',
|
||||
help='Generate stats across all known projects (*.json)')
|
||||
|
@ -32,7 +32,7 @@ import utils
|
||||
|
||||
|
||||
optparser = optparse.OptionParser()
|
||||
optparser.add_option('-p', '--project', default='nova.json',
|
||||
optparser.add_option('-p', '--project', default='projects/nova.json',
|
||||
help='JSON file describing the project to generate stats for')
|
||||
optparser.add_option('-a', '--all', action='store_true',
|
||||
help='Generate stats across all known projects (*.json)')
|
||||
|
Loading…
Reference in New Issue
Block a user