[postgis-tickets] r14729 - Fix version extraction from Version.config

Sandro Santilli strk at keybit.net
Tue Mar 1 07:46:08 PST 2016


Author: strk
Date: 2016-03-01 07:46:08 -0800 (Tue, 01 Mar 2016)
New Revision: 14729

Modified:
   trunk/make_dist.sh
Log:
Fix version extraction from Version.config

Modified: trunk/make_dist.sh
===================================================================
--- trunk/make_dist.sh	2016-03-01 15:14:02 UTC (rev 14728)
+++ trunk/make_dist.sh	2016-03-01 15:46:08 UTC (rev 14729)
@@ -84,9 +84,9 @@
 # a development branch
 if test "$tag" = "trunk"; then
   echo "Tweaking version for development snapshot"
-  VMAJ=`grep POSTGIS_MAJOR_VERSION "$outdir"/Version.config | cut -d= -f2`
-  VMIN=`grep POSTGIS_MINOR_VERSION "$outdir"/Version.config | cut -d= -f2`
-  VMIC=`grep POSTGIS_MICRO_VERSION "$outdir"/Version.config | cut -d= -f2`
+  VMAJ=`grep ^POSTGIS_MAJOR_VERSION "$outdir"/Version.config | cut -d= -f2`
+  VMIN=`grep ^POSTGIS_MINOR_VERSION "$outdir"/Version.config | cut -d= -f2`
+  VMIC=`grep ^POSTGIS_MICRO_VERSION "$outdir"/Version.config | cut -d= -f2`
   VREV=`cat "$outdir"/postgis_svn_revision.h | awk '{print $3}'`
   version="${VMAJ}.${VMIN}.${VMIC}-r${VREV}"
   newoutdir=postgis-${version}



More information about the postgis-tickets mailing list