Created
February 3, 2016 07:48
-
-
Save ermshiperete/db4c6a3df02d54cd03f1 to your computer and use it in GitHub Desktop.
Modified mono-sil for LfMerge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# mono-sil | |
# | |
# Original author: MarkS 2010-06-03 | |
# Modified for generalized use by WeSay and other projects: SteveMc 2014-01-10 | |
# | |
# Set up environment for running the SIL version of mono. Suitable for use by | |
# monodevelop. | |
# | |
# Example Installation: | |
# sudo mv /opt/mono-sil/bin/mono /opt/mono-sil/bin/mono-real | |
# sudo cp mono-sil /opt/mono-sil/bin/mono | |
# sudo chmod +x /opt/mono-sil/bin/mono | |
# | |
# Example Usage (possibly in shell scripts to run individual programs): | |
# export MONO_ENVIRON=/path/to/LSDev/environ/script | |
# BUILD=Release /opt/mono-sil/bin/mono WeSay.exe | |
# | |
# See http://linux.lsdev.sil.org/wiki/index.php/Install_and_use_Monodevelop | |
# for more information. | |
export MONO_PREFIX=/opt/mono-sil | |
if [[ $(pwd) == */fwrepo/fw/* ]]; then | |
MONO_ENVIRON=$FIELDWORKS_ENVIRON | |
elif [[ $(pwd) == */LfMerge/* ]]; then | |
MONO_ENVIRON=$LFMERGE_ENVIRON | |
fi | |
if [ -n "$MONO_ENVIRON" -a -f "$MONO_ENVIRON" ]; then | |
pushd "$(dirname "$MONO_ENVIRON")" >/dev/null | |
source "$MONO_ENVIRON" | |
popd >/dev/null | |
fi | |
exec "$(dirname "$0")/mono-real" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment