]> granicus.if.org Git - postgis/commitdiff
Set version from Version.config for branch dists too
authorSandro Santilli <strk@keybit.net>
Tue, 1 Mar 2016 17:48:33 +0000 (17:48 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 1 Mar 2016 17:48:33 +0000 (17:48 +0000)
See #3482

git-svn-id: http://svn.osgeo.org/postgis/trunk@14731 b70326c6-7e19-0410-871a-916f4a2858ee

make_dist.sh

index dc11f21efda039023c4f104619aeaa150721c722..68b0e424f9379a8169bbb38d31c3d07851037acd 100755 (executable)
@@ -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`