feature angle defaults to 20deg now
[engrid.git] / src / scripts / rebuild.sh
blobaef043ef6afa137270ad28562a826c78c10c2ac7
1 #!/usr/bin/env bash
2 #
3 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 # + +
5 # + This file is part of enGrid. +
6 # + +
7 # + Copyright 2008-2013 enGits GmbH +
8 # + +
9 # + enGrid is free software: you can redistribute it and/or modify +
10 # + it under the terms of the GNU General Public License as published by +
11 # + the Free Software Foundation, either version 3 of the License, or +
12 # + (at your option) any later version. +
13 # + +
14 # + enGrid is distributed in the hope that it will be useful, +
15 # + but WITHOUT ANY WARRANTY; without even the implied warranty of +
16 # + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
17 # + GNU General Public License for more details. +
18 # + +
19 # + You should have received a copy of the GNU General Public License +
20 # + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
21 # + +
22 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25 set -ex
27 FAILURE=0
29 #set up environment
30 # source ./scripts/setup_paths.sh engits yes
31 source /opt/engits/bin/engrid_environment.sh
33 echo "BUILDING TOOLS":
34 echo "gcc = $(which gcc)"
35 echo "g++ = $(which g++)"
36 echo "qmake = $(which qmake)"
37 echo "make = $(which make)"
38 gcc -v
39 g++ -v
40 qmake -v
41 make -v
43 echo "PATHS:"
44 echo QTDIR = $QTDIR
45 echo VTKLIBDIR = $VTKLIBDIR
46 echo VTKINCDIR = $VTKINCDIR
47 echo CGNSINCDIR = $CGNSINCDIR
48 echo CGNSLIBDIR = $CGNSLIBDIR
49 echo PATH = $PATH
50 echo LD_LIBRARY_PATH = $LD_LIBRARY_PATH
52 echo "Building netgen"
53 ./scripts/build-nglib.sh
55 MAKEOPTIONS=""
57 MSG="Building engrid.pro debug version"
58 echo $MSG
59 qmake && make distclean && qmake engrid.pro && make $MAKEOPTIONS debug || FAILURE=1
60 if [ $FAILURE -eq 1 ]
61 then
62 echo "$MSG failed."
63 exit 1
66 MSG="Building engrid.pro.cgns debug version"
67 echo $MSG
68 qmake && make distclean && qmake engrid.pro.cgns && make $MAKEOPTIONS debug || FAILURE=1
69 if [ $FAILURE -eq 1 ]
70 then
71 echo "$MSG failed."
72 exit 1
75 MSG="Building engrid.pro release version"
76 echo $MSG
77 qmake && make distclean && qmake engrid.pro && make $MAKEOPTIONS release || FAILURE=1
78 if [ $FAILURE -eq 1 ]
79 then
80 echo "$MSG failed."
81 exit 1
84 MSG="Building engrid.pro.cgns release version"
85 echo $MSG
86 qmake && make distclean && qmake engrid.pro.cgns && make $MAKEOPTIONS release || FAILURE=1
87 if [ $FAILURE -eq 1 ]
88 then
89 echo "$MSG failed."
90 exit 1
93 echo "SUCCESS: Everything compiles."