forked from sones/sones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_sonesGraphDB.sh
executable file
·98 lines (83 loc) · 2.79 KB
/
run_sonesGraphDB.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
#
# sones GraphDB - Community Edition - http://www.sones.com
# Copyright (C) 2007-2011 sones GmbH
#
# This file is part of sones GraphDB Community Edition.
#
# sones GraphDB is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# sones GraphDB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with sones GraphDB. If not, see <http://www.gnu.org/licenses/>.
#
# This is the run script for sones GraphDB 2.0 Community Edition Starter Application
#
# There are several commandline options available:
#
# -h will display a help
# -d run the DEBUG build (DEFAULT)
# -r run the RELEASE build
#
# Last changes: 31-July-2011, Daniel Kirstenpfad
#
echo "sones GraphDB 2.0 Starter Script (C) sones GmbH 2007-2011";
echo "";
option=$1
if [ $# -lt 1 ]; then
echo "Type -h for options. Defaulting to debug.";
option="-d";
fi
if [ $option = "-h" ]; then
echo "-r run a release build"
echo "-d run with debug build"
exit 0
fi
DIRECTORY=$(cd `dirname $0` && pwd)
if [ $option == "-r" ]; then
echo "Starting sones GraphDB 2.0 (RELEASE) in $DIRECTORY/Applications/sonesGraphDB/bin/Release/";
echo "";
cd $DIRECTORY/Applications/sonesGraphDB/bin/Release/
if [ -x sonesGraphDBStarter.exe ]; then
if which "mono-sgen" >/dev/null; then
mono-sgen --runtime=v4.0.30319 sonesGraphDBStarter.exe
else
if which "mono" >/dev/null; then
mono --runtime=v4.0.30319 sonesGraphDBStarter.exe
else
echo "You need to have MONO (>2.8) installed and in your path. Mono-SGEN is recommended.";
fi
fi
else
echo "You need to build before you run. Please use the buildSolution.sh script to do that first.";
exit 1;
fi
elif [ $option == "-d" ]; then
echo "Starting sones GraphDB 2.0 (DEBUG) in $DIRECTORY/Applications/sonesGraphDB/bin/Debug/";
echo "";
cd $DIRECTORY/Applications/sonesGraphDB/bin/Debug/
if [ -x sonesGraphDBStarter.exe ]; then
if which "mono-sgen" >/dev/null; then
echo "Using MONO-sgen";
mono-sgen --runtime=v4.0.30319 sonesGraphDBStarter.exe
else
if which "mono" >/dev/null; then
echo "Using MONO (with boehm-gc)";
mono --runtime=v4.0.30319 sonesGraphDBStarter.exe
else
echo "You need to have MONO (>2.8) installed and in your path. Mono-SGEN is recommended.";
fi
fi
else
echo "You need to build before you run. Please use the buildSolution.sh script to do that first.";
exit 1;
fi
else
exit 0
fi