slider for smoothing
[engrid-github.git] / setup_ubuntu.bash
blob130cbad992dc24ebe9a366472bb8f161c4d58661
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 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24 olddir=`pwd`
25 cd `dirname $0`
26 sudo apt-get install libvtk5-qt4-dev qt4-dev-tools
27 cp engrid iengrid
28 echo "`pwd`/run.bash" >> iengrid
29 sudo cp iengrid /usr/bin/engrid
30 cp engrid.desktop iengrid.desktop
31 echo "Icon=`pwd`/src/libengrid/resources/icons/G.png" >> iengrid.desktop
32 sudo cp iengrid.desktop /usr/share/applications/engrid.desktop
33 cd $olddir
34 echo "You can start enGrid by typing 'engrid' from the command line (as non-root user) or with the help of the desktop menus."