Fix compiler warning due to missing function prototype.
[svn.git] / tools / dev / iz / ff2csv.command
blob6826e34db2b261abbf06eec0aa944cdb78b7d623
1 #!/bin/sh
3 # MacOS X do-hickie to run ff2csv.py, with parameters, by double-click.
6 flags="hq"
7 Usage () {
8 args="$*"
9 if [[ -n "$args" ]] ; then
10 echo >&2 "$args"
12 echo >&2 "Usage: $0 [-$flags] [querysetfile [csvfile]]
13 Run ff2csv.py, fetching and summarizing SVN bug status."
15 while getopts $flags flag; do
16 case "$flag" in
17 h|q) Usage; exit 0;;
18 esac
19 done
21 # we want to run in the same folder as this script, not
22 # the users home folder
23 cd `dirname $0`
26 date=`date +%m%d`
27 ./ff2csv.py ${1:-query-set-1-$date.tsv} ${2:-core-history-$date.csv}