Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (27 sloc) 0.836 kb
#!/bin/sh -e
# This script draws a plot to compare commit activities
# set -x
if [ "$1" = "" ] ; then
echo "Usage: `basename $0` <listname> [numauthors] [outputformat] [textcolor]"
exit 1
fi
NUM=10
if [ $# -gt 1 ] ; then
if [ "$2" -lt $NUM -o "$2" -gt $NUM ] ; then
NUM=$2
fi
fi
LIST_NAME=$1
TOTAL_AUTHORS=`psql -t teammetrics -c "SELECT COUNT(DISTINCT name) FROM commitstat WHERE project = '$LIST_NAME'"`;
if [ $TOTAL_AUTHORS -lt $NUM ] ; then
NUM=$TOTAL_AUTHORS
fi
NAME=commitstat_"$1"
DATFILE="${NAME}_year.txt"
./author_stats_helper.py commit $1 > $DATFILE
if [ "$3" = "pdf" ] ; then
# PDFs are usually used in slides where we add the headline in LaTeX
./author_stats_create_graph $DATFILE $NUM "" "$3" "$4"
else
./author_stats_create_graph $DATFILE $NUM "VCS commits in $1 team" "$3" "$4"
fi
Jump to Line
Something went wrong with that request. Please try again.