2012-05-24 06:32:48 +00:00
|
|
|
#!/bin/bash
|
2020-06-30 09:53:07 +00:00
|
|
|
|
|
|
|
if [ $# -lt 1 ]; then
|
|
|
|
echo "Usage: $0 version"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
VERSION="$1"
|
|
|
|
|
|
|
|
wget https://github.com/OSGeo/gdal/releases/download/v$VERSION/gdal-$VERSION.tar.gz
|
2012-05-24 06:32:48 +00:00
|
|
|
|
2020-05-20 20:54:35 +00:00
|
|
|
tar xvf gdal-"${VERSION}".tar.gz
|
2012-05-24 06:32:48 +00:00
|
|
|
|
|
|
|
mv gdal-"${VERSION}"{,-fedora} && pushd gdal-"${VERSION}"-fedora
|
|
|
|
|
|
|
|
rm data/cubewerx_extra.wkt
|
|
|
|
rm data/esri_extra.wkt
|
|
|
|
rm data/esri_Wisconsin_extra.wkt
|
|
|
|
rm data/esri_StatePlane_extra.wkt
|
|
|
|
rm data/ecw_cs.wkt
|
|
|
|
|
|
|
|
#Really necessary?
|
|
|
|
rm -r swig/php
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
#TODO: Insert Provenance file
|
|
|
|
|
2019-09-04 14:53:42 +00:00
|
|
|
tar cvfJ gdal-"${VERSION}"-fedora.tar.xz gdal-"${VERSION}"-fedora
|