feature angle defaults to 20deg now
[engrid.git] / src / scripts / build-nglib-svn.sh
blob62d53cad1d1604625f34a679e738cf2123df5039
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 # DESCRIPTION:
26 # This script checks out or updates the netgen source code and creates the static netgen library.
28 # cf parameter expansion in bash manual
29 SCRIPTDIR=${0%$(basename $0)}
30 cd $SCRIPTDIR/..
32 package=netgen-mesher
34 echo "Working directory = $(pwd)"
35 cd netgen_svn || exit 1
37 if [ -d netgen-mesher/.svn ]
38 then
39 echo "updating NETGEN from SVN repository (sourceforge.net) -- please wait"
40 svn up $package
41 else
42 echo "downloading NETGEN from SVN repository (sourceforge.net) -- please wait"
43 svn co https://netgen-mesher.svn.sourceforge.net/svnroot/$package $package
46 echo
47 echo "starting qmake for $package"
48 echo
50 qmake
52 echo
53 echo "making $package"
54 echo
56 make -j4
59 # ----------------------------------------------------------------- end-of-file