https://github.com/GeoscienceAustralia/PyRate
Tip revision: a1845a10c680eda4e34f93e8ab787ccfb367e546 authored by Matt Garthwaite on 21 October 2021, 00:43:59 UTC
Merge pull request #366 from sixy6e/j6-actions
Merge pull request #366 from sixy6e/j6-actions
Tip revision: a1845a1
ci_proj_install.sh
#!/bin/sh
set -e
# Create build dir if not exists
if [ ! -d "$PROJBUILD" ]; then
mkdir $PROJBUILD;
fi
if [ ! -d "$PROJINST" ]; then
mkdir $PROJINST;
fi
ls -l $PROJINST
echo "PROJ VERSION: $PROJVERSION"
if [ ! -d "$PROJINST/gdal-$GDALVERSION/share/proj" ]; then
cd $PROJBUILD
wget -q https://download.osgeo.org/proj/proj-$PROJVERSION.tar.gz
tar -xzf proj-$PROJVERSION.tar.gz
cd proj-$PROJVERSION
./configure --prefix=$PROJINST/gdal-$GDALVERSION
make -s -j 2
make install
fi
