Move openreviews into the reviewstats namespace.

Change-Id: I3029a4568c74b227412b677fcb5e6df6c040458f
This commit is contained in:
Robert Collins 2013-11-25 07:18:29 +00:00 committed by Russell Bryant
parent e6d1ca533e
commit 1b1c2dad6f
3 changed files with 5 additions and 10 deletions

View File

@ -26,18 +26,18 @@ metadata() {
for project in ${projects} ; do
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
(metadata && ./openreviews.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openreviews.txt
./openreviews.py -p ${project} --html ${EXTRA_ARGS} > results/${project_base}-openreviews.html
(metadata && openreviews -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openreviews.txt
openreviews -p ${project} --html ${EXTRA_ARGS} > results/${project_base}-openreviews.html
(metadata && openapproved -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openapproved.txt
done
if [ "${all}" = "1" ] ; then
(metadata && ./openreviews.py -a ${EXTRA_ARGS}) > results/all-openreviews.txt.tmp
(metadata && openreviews -a ${EXTRA_ARGS}) > results/all-openreviews.txt.tmp
for f in results/*-openreviews.txt ; do
(echo && cat $f) >> results/all-openreviews.txt.tmp
done
mv results/all-openreviews.txt.tmp results/all-openreviews.txt
./openreviews.py -a --html ${EXTRA_ARGS} | grep -v '</html>' > results/all-openreviews.html.tmp
openreviews -a --html ${EXTRA_ARGS} | grep -v '</html>' > results/all-openreviews.html.tmp
for f in results/*-openreviews.html ; do
cat $f | grep -v 'html>' | grep -v 'head>' >> results/all-openreviews.html.tmp
done

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# Copyright (C) 2011 - Soren Hansen
# Copyright (C) 2013 - Red Hat, Inc.
#
@ -335,7 +333,3 @@ def main(argv=None):
print_stats_html(stats)
else:
print_stats_txt(stats)
if __name__ == '__main__':
sys.exit(main())

View File

@ -48,4 +48,5 @@ output_file = reviewstats/locale/reviewstats.pot
[entry_points]
console_scripts =
openapproved = reviewstats.cmd.openapproved:main
openreviews = reviewstats.cmd.openreviews:main
reviews_for_bugs = reviewstats.cmd.reviews_for_bugs:main