mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
scripts/mercury_compile.sh-csharp:
Use "mono" as the default CLI interpreter, rather
than "/opt/local/bin/mono"
16 lines
410 B
Bash
Executable File
16 lines
410 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script invokes the _installed_ version of the Mercury compiler when it
|
|
# is built in the C# grade and run using Mono.
|
|
|
|
DIR=${0%/*}
|
|
DIR=$( cd "${DIR}" && pwd -P )
|
|
case $WINDIR in
|
|
'') SEP=':' ;;
|
|
*) SEP=';' ;;
|
|
esac
|
|
MONO_PATH="$DIR/../lib/mercury/lib/csharp"${SEP}$MONO_PATH
|
|
export MONO_PATH
|
|
CLI_INTERPRETER=${CLI_INTERPRETER:-mono}
|
|
exec "$CLI_INTERPRETER" "$DIR/mercury_compile.exe" "$@"
|