Update README.md
[engrid-github.git] / src / scripts / build-nglib-svn.sh
blob2ecbff9f9ab526b1d5b9e2d97f0c8a86132a608c
1 #!/usr/bin/env bash
2 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 # + +
4 # + This file is part of enGrid. +
5 # + +
6 # + Copyright 2008-2014 enGits GmbH +
7 # + +
8 # + enGrid is free software: you can redistribute it and/or modify +
9 # + it under the terms of the GNU General Public License as published by +
10 # + the Free Software Foundation, either version 3 of the License, or +
11 # + (at your option) any later version. +
12 # + +
13 # + enGrid is distributed in the hope that it will be useful, +
14 # + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 # + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 # + GNU General Public License for more details. +
17 # + +
18 # + You should have received a copy of the GNU General Public License +
19 # + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
20 # + +
21 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 # DESCRIPTION:
24 # This script checks out or updates the netgen source code and creates the static netgen library.
26 # cf parameter expansion in bash manual
27 SCRIPTDIR=${0%$(basename $0)}
28 cd $SCRIPTDIR/..
30 package=netgen-mesher
32 echo "Working directory = $(pwd)"
33 cd netgen_svn || exit 1
35 if [ -d netgen-mesher/.svn ]
36 then
37 echo "updating NETGEN from SVN repository (sourceforge.net) -- please wait"
38 svn up $package
39 else
40 echo "downloading NETGEN from SVN repository (sourceforge.net) -- please wait"
41 svn co https://netgen-mesher.svn.sourceforge.net/svnroot/$package $package
44 echo
45 echo "starting qmake for $package"
46 echo
48 qmake
50 echo
51 echo "making $package"
52 echo
54 make -j4
57 # ----------------------------------------------------------------- end-of-file