Files
mercury/scripts/mercury_compile.sh-csharp
Julien Fischer a20c994166 Change the path of the default CLI interpreter.
scripts/mercury_compile.sh-csharp:
    Use "mono" as the default CLI interpreter, rather
    than "/opt/local/bin/mono"
2024-01-09 02:03:14 +11:00

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" "$@"