fixed bug with constructor and use_all_cells
[engrid-github.git] / src / scripts / setup_pathes.bash
blobde07f0ab9046803bf59daba0134db76b89c9f787
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 help ()
25 echo "The script is unable to detect the location of your VTK installation."
26 echo "Please set the following variables manually"
27 echo " - VTKINCDIR"
28 echo " - VTKLIBDIR"
31 if [ -d /usr/include/vtk-5.10 ]
32 then
33 export VTKINCDIR=/usr/include/vtk-5.10
34 elif [ -d /usr/include/vtk-5.8 ]
35 then
36 export VTKINCDIR=/usr/include/vtk-5.8
37 elif [ -d /usr/include/vtk-5.6 ]
38 then
39 export VTKINCDIR=/usr/include/vtk-5.6
40 elif [ -d /usr/include/vtk-5.4 ]
41 then
42 export VTKINCDIR=/usr/include/vtk-5.4
43 elif [ -d /usr/include/vtk ]
44 then
45 export VTKINCDIR=/usr/include/vtk
46 else
47 help
50 if [ -f /usr/lib/libvtkCommon.so ]
51 then
52 export VTKLIBDIR=/usr/lib
53 elif [ -f /usr/lib64/libvtkCommon.so ]
54 then
55 export VTKLIBDIR=/usr/lib64
56 elif [ -f /usr/lib/vtk/libvtkCommon.so ]
57 then
58 export VTKLIBDIR=/usr/lib/vtk
59 elif [ -f /usr/lib64/vtk/libvtkCommon.so ]
60 then
61 export VTKLIBDIR=/usr/lib64/vtk
62 else
63 help
66 if [ -n "$(which qmake-qt4)" ]; then
67 [ ! -x "scripts/qmake" ] && chmod +x scripts/qmake
68 export PATH=$PATH:`pwd`/scripts
71 export LD_LIBRARY_PATH=$VTKLIBDIR:$LD_LIBRARY_PATH