gvsig-gdal / trunk / org.gvsig.gdal / org.gvsig.gdal.app / org.gvsig.gdal.app.mainplugin / org.gvsig.gdal.app.mainplugin.all.all / src / main / resources-plugin / autorun.sh @ 259
History | View | Annotate | Download (1.42 KB)
1 | 24 | jbadia | #!/bin/sh |
---|---|---|---|
2 | # |
||
3 | # gvSIG. Desktop Geographic Information System. |
||
4 | # |
||
5 | # Copyright (C) 2007-2013 gvSIG Association. |
||
6 | # |
||
7 | # This program is free software; you can redistribute it and/or |
||
8 | # modify it under the terms of the GNU General Public License |
||
9 | # as published by the Free Software Foundation; either version 3 |
||
10 | # of the License, or (at your option) any later version. |
||
11 | # |
||
12 | # This program is distributed in the hope that it will be useful, |
||
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
15 | # GNU General Public License for more details. |
||
16 | # |
||
17 | # You should have received a copy of the GNU General Public License |
||
18 | # along with this program; if not, write to the Free Software |
||
19 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
||
20 | # MA 02110-1301, USA. |
||
21 | # |
||
22 | # For any additional information, do not hesitate to contact us |
||
23 | # at info AT gvsig.com, or visit our website www.gvsig.com. |
||
24 | # |
||
25 | |||
26 | |||
27 | # |
||
28 | # Plugin autorun |
||
29 | 103 | fdiaz | # |
30 | 24 | jbadia | |
31 | 103 | fdiaz | PLUGIN_NAME=$(basename "$PLUGIN_FOLDER") |
32 | 24 | jbadia | |
33 | 128 | jjdelcerro | logger_info "Using gdal installed in the Operating System" |
34 | |||
35 | 259 | jjdelcerro | # For Ubuntu |
36 | logger_info "In Ubuntu systems require: proj-bin, gdal-bin (1.11), libjdal-java" |
||
37 | # Add path to .so of jni that not are in the library path |
||
38 | 24 | jbadia | add_library_path "/usr/lib/jni" |
39 | 259 | jjdelcerro | # Add to the class path the jar of gdal |
40 | add_classpath "/usr/share/java/gdal.jar" |
||
41 | export GDAL_DATA=/usr/share/gdal/1.1*/ |
||
42 | 24 | jbadia | |
43 | 259 | jjdelcerro | |
44 | 37 | jjdelcerro | # library path for redhat/fedora |
45 | add_library_path "/usr/lib/java/gdal" |
||
46 |