updated licence header
[engrid-github.git] / setup_opensuse.bash
blob7142d18b024ab9f6a25e3995c3cfd541fad1ac7e
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 zypper addrepo http://download.opensuse.org/repositories/science/openSUSE_11.4/ science
27 sudo zypper install vtk-qt
28 cp engrid iengrid
29 echo "`pwd`/run.bash" >> iengrid
30 sudo cp iengrid /usr/bin/engrid
31 cp engrid.desktop iengrid.desktop
32 echo "Icon=`pwd`/src/libengrid/resources/icons/G.png" >> iengrid.desktop
33 sudo cp iengrid.desktop /usr/share/applications/engrid.desktop
34 cd $olddir
35 echo "You can start enGrid by typing 'engrid' from the command line (as non-root user) or with the help of the desktop menus."