#!/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:-/opt/local/bin/mono} exec "$CLI_INTERPRETER" "$DIR/mercury_compile.exe" "$@"