]> granicus.if.org Git - postgis/commitdiff
First draft
authorRegina Obe <lr@pcorp.us>
Sat, 13 Jan 2018 06:59:34 +0000 (06:59 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 13 Jan 2018 06:59:34 +0000 (06:59 +0000)
References #3985

git-svn-id: http://svn.osgeo.org/postgis/trunk@16281 b70326c6-7e19-0410-871a-916f4a2858ee

ci/debbie/postgis_make_dist.sh [new file with mode: 0644]

diff --git a/ci/debbie/postgis_make_dist.sh b/ci/debbie/postgis_make_dist.sh
new file mode 100644 (file)
index 0000000..c25a1fd
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/bash
+set -e
+## begin variables passed in by jenkins
+
+export PG_VER=9.6
+# export PGPORT=8442
+export OS_BUILD=64
+# export POSTGIS_MAJOR_VERSION=2
+# export POSTGIS_MINOR_VERSION=2
+# export POSTGIS_MICRO_VERSION=0dev
+# export JENKINS_HOME=/var/lib/jenkins/workspace
+export GEOS_VER=3.6.2
+export GDAL_VER=2.2
+export WEB_DIR=/var/www/postgis_stuff/
+export PATH="${PGPATH}/bin:$PATH"
+export LD_LIBRARY_PATH="${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}/lib:${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}/lib:${PGPATH}/lib"
+
+cd ../../
+$POSTGIS_MAJOR_VERSION=`grep ^POSTGIS_MAJOR_VERSION Version.config | cut -d= -f2`
+$POSTGIS_MINOR_VERSION=`grep ^POSTGIS_MINOR_VERSION Version.config | cut -d= -f2`
+$POSTGIS_MICRO_VERSION=`grep ^POSTGIS_MICRO_VERSION Version.config | cut -d= -f2`
+
+export CONFIGURE_ARGS=--with-pgconfig=${PROJECTS}/pg/rel/pg${PG_VER}w${OS_BUILD}/bin/pg_config \
+    --with-geosconfig=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}/bin/geos-config \
+    --with-gdalconfig=${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}/bin/gdal-config --with-sfcgal=/usr/bin/sfcgal-config \
+    --without-interrupt-tests \
+    --prefix=${PROJECTS}/pg/rel/pg${PG_VER}w${OS_BUILD}
+
+sh make_dist.sh
+cp $package $WEB_DIR