forked from sones/sones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildSolution.sh
executable file
·69 lines (61 loc) · 1.8 KB
/
buildSolution.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
#!/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 build script for sones GraphDB 2.0 Community Edition
#
# There are several commandline options available:
#
# -h will display a help
# -d do a DEBUG build (DEFAULT)
# -r do a RELEASE build
# -p do a partial build (can be combined with -d/-r)
#
# Last changes: 31-July-2011, Daniel Kirstenpfad
#
echo "sones GraphDB 2.0 Build Script (C) sones GmbH 2007-2011";
option=$1
option2=$2
if [ $# -lt 1 ]; then
echo "Type -h for build options.";
option="-d";
option2="-d";
fi
if [ $option == "-p" ] && [ -z "$option2" ]; then
option2="-d";
fi
if [ $option == "-h" ]; then
echo "-r build a release";
echo "-d build with debug symbols";
echo "-p build partially (can be combined with -r and -d)";
exit 0
fi
if [ $option == "-p" ] || [ $option2 == "-p" ]; then
echo "Doing a partially build";
else
./cleanSolution.sh
fi
if [ $option == "-r" ] || [ $option2 == "-r" ]; then
echo "Doing a release build";
xbuild /property:Configuration=Release;
elif [ $option == "-d" ] || [ $option2 == "-d" ]; then
echo "Doing a debug build";
xbuild;
else
exit 0
fi