]> granicus.if.org Git - postgis/commitdiff
Fix version extraction from Version.config
authorSandro Santilli <strk@keybit.net>
Tue, 1 Mar 2016 15:46:08 +0000 (15:46 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 1 Mar 2016 15:46:08 +0000 (15:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14729 b70326c6-7e19-0410-871a-916f4a2858ee

make_dist.sh

index 62bad3ede8adabd51ed0d133e0c7fb71b19b912a..b531b3d0788b24a6faa91106474f748e8071843a 100755 (executable)
@@ -84,9 +84,9 @@ cd "$owd"
 # 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}