#!/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 /opt/local/bin//mono $DEBUG $MONO_OPTIONS /opt/local/lib/mono/fsharp/fsiAnyCpu.exe --exename:$(basename "$0") "$@"
