mono-wrapper.in 639 B

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