Skip to content
Newer
Older
100755 70 lines (61 sloc) 1.8 KB
2c44941 added scripts and readme
Daniel Kirstenpfad authored May 12, 2011
1 #!/bin/bash
8d8b77f added partial build option to build script and additional rewrites of…
Daniel Kirstenpfad authored Jul 31, 2011
2 #
3 # sones GraphDB - Community Edition - http://www.sones.com
4 # Copyright (C) 2007-2011 sones GmbH
5 #
6 # This file is part of sones GraphDB Community Edition.
7 #
8 # sones GraphDB is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Affero General Public License as published by
10 # the Free Software Foundation, version 3 of the License.
11 #
12 # sones GraphDB is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Affero General Public License for more details.
16 #
17 # You should have received a copy of the GNU Affero General Public License
18 # along with sones GraphDB. If not, see <http://www.gnu.org/licenses/>.
19 #
20 # This is the build script for sones GraphDB 2.0 Community Edition
21 #
22 # There are several commandline options available:
23 #
24 # -h will display a help
25 # -d do a DEBUG build (DEFAULT)
26 # -r do a RELEASE build
27 # -p do a partial build (can be combined with -d/-r)
28 #
29 # Last changes: 31-July-2011, Daniel Kirstenpfad
30 #
31
32 echo "sones GraphDB 2.0 Build Script (C) sones GmbH 2007-2011";
33
2c44941 added scripts and readme
Daniel Kirstenpfad authored May 12, 2011
34 option=$1
8d8b77f added partial build option to build script and additional rewrites of…
Daniel Kirstenpfad authored Jul 31, 2011
35 option2=$2
2c44941 added scripts and readme
Daniel Kirstenpfad authored May 12, 2011
36
8d8b77f added partial build option to build script and additional rewrites of…
Daniel Kirstenpfad authored Jul 31, 2011
37 if [ $# -lt 1 ]; then
38 echo "Type -h for build options.";
39 option="-d";
40 option2="-d";
41 fi
2c44941 added scripts and readme
Daniel Kirstenpfad authored May 12, 2011
42
1c2fa79 small build script bugfix (GRAPHDB-337)
Daniel Kirstenpfad authored Jul 31, 2011
43 if [ $option == "-p" ] && [ -z "$option2" ]; then
44 option2="-d";
45 fi
46
8d8b77f added partial build option to build script and additional rewrites of…
Daniel Kirstenpfad authored Jul 31, 2011
47 if [ $option == "-h" ]; then
48 echo "-r build a release";
49 echo "-d build with debug symbols";
50 echo "-p build partially (can be combined with -r and -d)";
2c44941 added scripts and readme
Daniel Kirstenpfad authored May 12, 2011
51 exit 0
52 fi
53
8d8b77f added partial build option to build script and additional rewrites of…
Daniel Kirstenpfad authored Jul 31, 2011
54 if [ $option == "-p" ] || [ $option2 == "-p" ]; then
55 echo "Doing a partially build";
56 else
b1fb591 @sunlounger fixed build scripts for Lucene.Net Assemblys
sunlounger authored Dec 5, 2011
57 ./cleanSolution.sh
8d8b77f added partial build option to build script and additional rewrites of…
Daniel Kirstenpfad authored Jul 31, 2011
58 fi
2c44941 added scripts and readme
Daniel Kirstenpfad authored May 12, 2011
59
8d8b77f added partial build option to build script and additional rewrites of…
Daniel Kirstenpfad authored Jul 31, 2011
60 if [ $option == "-r" ] || [ $option2 == "-r" ]; then
61 echo "Doing a release build";
62 xbuild /property:Configuration=Release;
63 elif [ $option == "-d" ] || [ $option2 == "-d" ]; then
64 echo "Doing a debug build";
65 xbuild;
2c44941 added scripts and readme
Daniel Kirstenpfad authored May 12, 2011
66 else
67 exit 0
68 fi
8d8b77f added partial build option to build script and additional rewrites of…
Daniel Kirstenpfad authored Jul 31, 2011
69
Something went wrong with that request. Please try again.