linux-packaging-mono/runtime/mono-wrapper.in
Xamarin Public Jenkins f3e3aab35a Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
2016-02-22 11:00:01 -05:00

17 lines
639 B
Bash

#! /bin/sh
r='@mono_build_root@'
MONO_CFG_DIR='@mono_cfg_dir@'
PATH="$r/runtime/_tmpinst/bin:$PATH"
MONO_EXECUTABLE=${MONO_EXECUTABLE:-"$r/@mono_runtime@"}
export MONO_CFG_DIR PATH
if [ -n "@nacl_self_host@" ]; then
case "$@" in
# gacutil.exe and mdoc.exe require filesystem functionality not
# exposed in NaCl.
# mcs.exe was added to the list recently because mcs under NaCl
# no longer produces equivalent output. TODO: investigate
*/mcs.exe* | */gacutil.exe* | */mdoc.exe* ) exec /usr/local/bin/mono "$@";;
esac
fi
exec "$r/libtool" --mode=execute "${MONO_EXECUTABLE}" --config "@mono_cfg_dir@/mono/config" "$@"