#!/bin/sh
EXEC="exec "

if test x"$1" = x--debug; then
   DEBUG=--debug
   shift
fi

if test x"$1" = x--gdb; then
   shift
   EXEC="gdb --eval-command=run --args "
fi

if test x"$1" = x--valgrind; then
  shift
  EXEC="valgrind $VALGRIND_OPTIONS"   
fi

$EXEC "${BASH_SOURCE%/*}"/mono $DEBUG $MONO_OPTIONS "$(cygpath -w "${BASH_SOURCE%/*}"/../lib/)mono/fsharp/fsi.exe" --exename:$(basename "$0") "$@"
