BASH   10

ff2csv.command

Guest on 25th July 2021 04:58:24 PM

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

Raw Paste


Login or Register to edit or fork this paste. It's free.