You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
465 B

9 years ago
  1. #!/bin/bash
  2. # A POSIX variable
  3. OPTIND=1 # Reset in case getopts has been used previously in the shell.
  4. # Initialize our own variables:
  5. memory=""
  6. while getopts "h?m:f:t:p:c:" opt; do
  7. case "$opt" in
  8. h|\?)
  9. echo "Usage: main -f problem.json -t time -m memory -p powerPhrase"
  10. exit 0
  11. ;;
  12. m) memory="+RTS -M"$OPTARG"m"
  13. ;;
  14. esac
  15. done
  16. cd "$( dirname "${BASH_SOURCE[0]}" )"
  17. dist/build/icfp2015/icfp2015 "$@" $memory