[postgis-tickets] r14728 - Add -b switch to create the dist file from a branch

Sandro Santilli strk at keybit.net
Tue Mar 1 07:14:02 PST 2016


Author: strk
Date: 2016-03-01 07:14:02 -0800 (Tue, 01 Mar 2016)
New Revision: 14728

Modified:
   trunk/make_dist.sh
Log:
Add -b switch to create the dist file from a branch

See #3482

Modified: trunk/make_dist.sh
===================================================================
--- trunk/make_dist.sh	2016-03-01 11:02:46 UTC (rev 14727)
+++ trunk/make_dist.sh	2016-03-01 15:14:02 UTC (rev 14728)
@@ -9,6 +9,9 @@
 # -- postgis-1.1.0.tar.gz 
 # sh make_dist.sh 1.1.0
 #
+# -- postgis-2.2.tar.gz  (from a branch)
+# sh make_dist.sh -b 2.2
+#
 # NOTE: will not work prior to 1.1.0
 #
 #
@@ -17,8 +20,14 @@
 version=dev
 
 if [ -n "$1" ]; then
-	version="$1"
-	tag="tags/$version"
+  if [ "$1" = "-b" ]; then
+    shift
+    version=$1
+    tag="branches/$1"
+  else
+    version="$1"
+    tag="tags/$version"
+  fi
 fi
 
 outdir="postgis-$version"



More information about the postgis-tickets mailing list