Skip to content

Instantly share code, notes, and snippets.

@wallymathieu
Created October 16, 2015 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallymathieu/99d20a5090f9691e38e0 to your computer and use it in GitHub Desktop.
Save wallymathieu/99d20a5090f9691e38e0 to your computer and use it in GitHub Desktop.
Hard coded location for mono
#!/bin/sh
EXEC="exec "
MONO="/Library/Frameworks/Mono.framework/Commands/mono"
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
# Beware this line must match the regular expression " (\/.*)\/fsi\.exe" when fsi.exe is fsi.exe.
# That's because the FSharp MonoDevelop addin looks inside the text of this script to determine the installation
# location of the default FSharp install in order to find the FSharp compiler binaries (see
# fsharpbinding/MonoDevelop.FSharpBinding/Services/CompilerLocationUtils.fs). That's a pretty unfortunate
# way of finding those binaries. And really should be changed.
$EXEC $MONO $DEBUG $MONO_OPTIONS /Library/Frameworks/Mono.framework/Versions/4.0.4/lib/mono/4.5/fsi.exe --exename:$(basename "$0") "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment