annotate WarFoundry.sh @ 167:9808adf2d566 default tip

Re #419: Remove assumptions of a file-based install * Update GTK# GUI to use Streams version of XSLT export
author IBBoard <dev@ibboard.co.uk>
date Wed, 28 Nov 2012 20:25:53 +0000
parents 4149dbdf042f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
112
9a93ae9ad956 * Add simple shell script to make sure that we run through Mono and not Wine (Not necessary, but useful to save confusion)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 #! /bin/bash
152
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
2
154
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
3 function reportError {
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
4 echo "ERROR: $1" >&2
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
5 command -v zenity >/dev/null 2>&1
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
6 if [[ $? == 0 ]]; then
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
7 zenity --error --text="$1"
161
4149dbdf042f Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
8 return
4149dbdf042f Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
9 fi
4149dbdf042f Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
10
4149dbdf042f Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
11 command -v kdialog >/dev/null 2>&1
4149dbdf042f Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
12 if [[ $? == 0 ]]; then
4149dbdf042f Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
13 kdialog --error "$1"
154
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
14 fi
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
15 }
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
16
160
b926b1b0ed79 * Fix typo in Mono command name
IBBoard <dev@ibboard.co.uk>
parents: 154
diff changeset
17 command -v mono >/dev/null 2>&1
152
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
18 if [[ $? != 0 ]]; then
154
c549fd4ff4bf Re #417: Improve install process
IBBoard <dev@ibboard.co.uk>
parents: 152
diff changeset
19 reportError "WarFoundry requires Mono to run - please install it from your package manager"
152
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
20 exit 3
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
21 fi
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
22
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
23 MONO_ARGS=''
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
24
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
25 command -v lsb_release >/dev/null 2>&1
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
26 if [[ $? == 0 ]]; then
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
27 if [[ `lsb_release -is` == "Ubuntu" && `lsb_release -rs` > 12 ]]; then
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
28 MONO_ARGS=' --runtime=v4.0'
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
29 fi
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
30 fi
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
31
b612d7137f4d Re #417: Improve WarFoundry installation experience
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
32 mono $MONO_ARGS WarFoundry-GTK.exe $@