File: ff2csv.command

package info (click to toggle)
subversion 1.6.12dfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 48,292 kB
  • ctags: 47,714
  • sloc: ansic: 578,414; python: 77,551; sh: 13,100; ruby: 12,194; cpp: 10,097; java: 8,428; lisp: 7,702; perl: 7,320; makefile: 1,035; xml: 759; sql: 62
file content (27 lines) | stat: -rwxr-xr-x 581 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

# MacOS X do-hickie to run ff2csv.py, with parameters, by double-click.


flags="hq"
Usage () {
    args="$*"
    if [[ -n "$args" ]] ; then
        echo >&2 "$args"
    fi
    echo >&2 "Usage: $0 [-$flags] [querysetfile [csvfile]]
Run ff2csv.py, fetching and summarizing SVN bug status."
}
while getopts $flags flag; do
    case "$flag" in
        h|q) Usage; exit 0;;
    esac
done

# we want to run in the same folder as this script, not
# the users home folder
cd `dirname $0`


date=`date +%m%d`
./ff2csv.py ${1:-query-set-1-$date.tsv} ${2:-core-history-$date.csv}