From 49b3f315fa0f62c7969e81629962937f77b962e2 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 1 Mar 2016 15:46:08 +0000 Subject: [PATCH] Fix version extraction from Version.config git-svn-id: http://svn.osgeo.org/postgis/trunk@14729 b70326c6-7e19-0410-871a-916f4a2858ee --- make_dist.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make_dist.sh b/make_dist.sh index 62bad3ede..b531b3d07 100755 --- a/make_dist.sh +++ b/make_dist.sh @@ -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} -- 2.40.0