Merge branch 'master' of ssh://swordfish/srv/www/htdocs/git/engrid
[engrid.git] / src / scripts / build-nglib.sh
blob56c03d66b1e65f40b4ed85bbacdb7aaeaa0bd807
1 #!/usr/bin/env bash
3 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 # + +
5 # + This file is part of enGrid. +
6 # + +
7 # + Copyright 2008,2009 Oliver Gloth +
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 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24 # DESCRIPTION:
25 # This script checks out or updates the netgen source code and creates the static netgen library.
27 # cf parameter expansion in bash manual
28 SCRIPTDIR=${0%$(basename $0)}
29 cd $SCRIPTDIR/..
31 package=netgen-mesher
33 echo "Working directory = $(pwd)"
34 cd netgen_svn || exit 1
36 if [ -d netgen-mesher/.svn ]
37 then
38 echo "updating NETGEN from SVN repository (sourceforge.net) -- please wait"
39 svn up $package
40 else
41 echo "downloading NETGEN from SVN repository (sourceforge.net) -- please wait"
42 svn co https://netgen-mesher.svn.sourceforge.net/svnroot/$package $package
45 echo
46 echo "starting qmake for $package"
47 echo
49 qmake
51 echo
52 echo "making $package"
53 echo
55 make
58 # ----------------------------------------------------------------- end-of-file