#!/bin/bash
#
# ::copy::
# ::maintainer::
#
version="::mono.version::"
dir="/opt/mono$version"
mono="$dir/bin/mono"

[ -f "$mono" ] || {
	echo "mono is not installed under '$dir' - abort" >&2
	exit 1
}

export PATH="$dir/bin:$PATH"
export PKG_CONFIG_PATH="$dir/lib/pkgconfig:$PKG_CONFIG_PATH"
export MANPATH="$dir/share/man:$MANPATH"
export LD_LIBRARY_PATH="$dir/lib:$LD_LIBRARY_PATH"
export MONO_THREADS_PER_CPU=75

exec "$mono" "$@"
