|
Revision 5023, 1.7 kB
(checked in by dron, 5 years ago)
|
Rename core to gcore.
|
- Property svn:eol-style set to
native
- Property svn:executable set to
*
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
if test $ |
|---|
| 4 |
echo "Usage: install_unx.sh install-path" |
|---|
| 5 |
echo |
|---|
| 6 |
echo "This script will attempt to install GDAL binaries, and shared" |
|---|
| 7 |
echo "library in the named location." |
|---|
| 8 |
exit 1 |
|---|
| 9 |
fi |
|---|
| 10 |
|
|---|
| 11 |
PREFIX=$1 |
|---|
| 12 |
|
|---|
| 13 |
if test ! -d $PREFIX ; then |
|---|
| 14 |
echo "Directory $PREFIX does not exist. Please create or correct." |
|---|
| 15 |
exit 1 |
|---|
| 16 |
fi |
|---|
| 17 |
|
|---|
| 18 |
if test ! -f bin/gdalinfo ; then |
|---|
| 19 |
echo "This script must be run from within the unpacked binary distribution" |
|---|
| 20 |
echo "directory." |
|---|
| 21 |
exit 1 |
|---|
| 22 |
fi |
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
if test ! -d $PREFIX/lib ; then |
|---|
| 29 |
mkdir $PREFIX/lib |
|---|
| 30 |
fi |
|---|
| 31 |
if test ! -d $PREFIX/bin ; then |
|---|
| 32 |
mkdir $PREFIX/bin |
|---|
| 33 |
fi |
|---|
| 34 |
if test ! -d $PREFIX/share ; then |
|---|
| 35 |
mkdir $PREFIX/share |
|---|
| 36 |
fi |
|---|
| 37 |
if test ! -d $PREFIX/share/gdal ; then |
|---|
| 38 |
mkdir $PREFIX/share/gdal |
|---|
| 39 |
fi |
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
SHARED_LIB=libgdal.1.1.so |
|---|
| 48 |
|
|---|
| 49 |
for SHARED_LIB in lib/* ; do |
|---|
| 50 |
cp $SHARED_LIB $PREFIX/lib |
|---|
| 51 |
bin/burnpath $PREFIX/$SHARED_LIB __INST_DATA_TARGET: $PREFIX/share/gdal |
|---|
| 52 |
done |
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
cp share/gdal/* $PREFIX/share/gdal |
|---|
| 59 |
|
|---|
| 60 |
for EXECUTABLE in bin/* ; do |
|---|
| 61 |
if test "$EXECUTABLE" == "bin/gdal-config" -o "$EXECUTABLE" == "bin/burnpath" ; then |
|---|
| 62 |
/bin/true |
|---|
| 63 |
else |
|---|
| 64 |
cp $EXECUTABLE $PREFIX/bin |
|---|
| 65 |
bin/burnpath $PREFIX/$EXECUTABLE __INST_DATA_TARGET: $PREFIX/share/gdal |
|---|
| 66 |
fi |
|---|
| 67 |
done |
|---|
| 68 |
|
|---|
| 69 |
echo "Installation of GDAL to $PREFIX complete." |
|---|
| 70 |
|
|---|