[postgis-tickets] r15050 - Accept PostgreSQL 10devel as the output from pg_config --version

Sandro Santilli strk at kbt.io
Wed Aug 31 04:36:47 PDT 2016


Author: strk
Date: 2016-08-31 04:36:46 -0700 (Wed, 31 Aug 2016)
New Revision: 15050

Modified:
   trunk/configure.ac
Log:
Accept PostgreSQL 10devel as the output from pg_config --version

See
https://github.com/postgis/postgis/commit/d7e9c4bd845d1d5de78f9f5e31b254babc01f1d0#commitcomment-18845097

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2016-08-31 02:23:02 UTC (rev 15049)
+++ trunk/configure.ac	2016-08-31 11:36:46 UTC (rev 15050)
@@ -432,7 +432,7 @@
   PGSQL_FULL_VERSION=`$PG_CONFIG --version`
   PGSQL_MAJOR_VERSION=`echo $PGSQL_FULL_VERSION | sed 's/[[^0-9]]*\([[0-9]]*\).*/\1/'`
   PGSQL_MINOR_VERSION=`echo $PGSQL_FULL_VERSION | sed 's/[[^\.]]*\.\([[0-9]]*\).*/\1/'`
-  PGSQL_MINOR_VERSION=`echo $PGSQL_MINOR_VERSION | sed 's/.*develop.*/0/'`
+  PGSQL_MINOR_VERSION=`echo $PGSQL_MINOR_VERSION | sed 's/.*devel.*/0/'`
   POSTGIS_PGSQL_VERSION="$PGSQL_MAJOR_VERSION$PGSQL_MINOR_VERSION"
 
   PGSQL_PKGLIBDIR=`$PG_CONFIG --pkglibdir`



More information about the postgis-tickets mailing list