Set version from Version.config for branch dists too

See #3482

git-svn-id: http://svn.osgeo.org/postgis/trunk@14731 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2016-03-01 17:48:33 +00:00
parent b71fb8fed8
commit dc0370353b

View file

@ -22,7 +22,6 @@ version=dev
if [ -n "$1" ]; then
if [ "$1" = "-b" ]; then
shift
version=$1
tag="branches/$1"
else
version="$1"
@ -82,7 +81,7 @@ cd "$owd"
# Find a better version name when fetching
# a development branch
if test "$tag" = "trunk"; then
if test "$version" = "dev"; 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`