view WarFoundry.sh @ 152:b612d7137f4d

Re #417: Improve WarFoundry installation experience * Initial attempt at a script that tries to do some validation and fix Ubuntu problems
author IBBoard <dev@ibboard.co.uk>
date Tue, 08 May 2012 21:00:24 +0100
parents 9a93ae9ad956
children c549fd4ff4bf
line source
1 #! /bin/bash
3 command -v mono >/dev/null 2>&1
4 if [[ $? != 0 ]]; then
5 ##TODO Try using Zenity or similar, in case the user is running from a GUI and not seeing our output
6 echo "WarFoundry requires Mono to run - please install it from your package manager" >&2
7 exit 3
8 fi
10 MONO_ARGS=''
12 command -v lsb_release >/dev/null 2>&1
13 if [[ $? == 0 ]]; then
14 if [[ `lsb_release -is` == "Ubuntu" && `lsb_release -rs` > 12 ]]; then
15 MONO_ARGS=' --runtime=v4.0'
16 fi
17 fi
19 mono $MONO_ARGS WarFoundry-GTK.exe $@