From: Sandro Santilli Date: Tue, 1 Mar 2016 15:46:08 +0000 (+0000) Subject: Fix version extraction from Version.config X-Git-Tag: 2.3.0beta1~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49b3f315fa0f62c7969e81629962937f77b962e2;p=postgis Fix version extraction from Version.config git-svn-id: http://svn.osgeo.org/postgis/trunk@14729 b70326c6-7e19-0410-871a-916f4a2858ee --- 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}