Skip to content

Instantly share code, notes, and snippets.

@jorgenpt
Created November 29, 2013 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgenpt/7700731 to your computer and use it in GitHub Desktop.
Save jorgenpt/7700731 to your computer and use it in GitHub Desktop.
#!/bin/bash
DIR=$(cd "$(dirname "$0")"; pwd)
MONO=`which mono`
if [ ! -z "$MONO" ]; then
TXT=`${MONO} -V`
VERSION="${TXT#"${TXT%%[[:digit:]]*}"}"
VERSION="${VERSION%%[^[:digit:].]*}"
VERSION="${VERSION//[!0-9\.]/}"
fi
if [[ "$VERSION" < "2.10.11" ]]; then
xterm -e sudo apt-get install mono-complete
fi
mono "$DIR/Hammerwatch.exe" $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment