[BCL] Partial revert of b83af940ff298f432952562e1fb83726a6958e11 to use the right...
[mono-project.git] / runtime / mono-wrapper.in
blob0ec4811fb5d03657a1bd71f85d6dad373891235f
1 #! /bin/sh
2 r='@mono_build_root@'
3 MONO_CFG_DIR='@mono_cfg_dir@'
4 PATH="$r/runtime/_tmpinst/bin:$PATH"
5 export MONO_CFG_DIR PATH
6 if [ -n "@nacl_self_host@" ]; then
7 case "$@" in
8 # gacutil.exe and mdoc.exe require filesystem functionality not
9 # exposed in NaCl.
10 # mcs.exe was added to the list recently because mcs under NaCl
11 # no longer produces equivalent output. TODO: investigate
12 */mcs.exe* | */gacutil.exe* | */mdoc.exe* ) exec /usr/local/bin/mono "$@";;
13 esac
15 exec "$r/libtool" --mode=execute "$r/@mono_runtime@" --config "@mono_cfg_dir@/mono/config" "$@"