Merge pull request #1695 from gregoryyoung/master
[mono.git] / runtime / mono-wrapper.in
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
14 fi
15 exec "$r/libtool" --mode=execute "$r/@mono_runtime@" --config "@mono_cfg_dir@/mono/config" "$@"