From: Sandro Santilli Date: Tue, 1 Mar 2016 15:14:02 +0000 (+0000) Subject: Add -b switch to create the dist file from a branch X-Git-Tag: 2.3.0beta1~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e98a7e1e127e93ef1af92903c946f46ea4674639;p=postgis Add -b switch to create the dist file from a branch See #3482 git-svn-id: http://svn.osgeo.org/postgis/trunk@14728 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/make_dist.sh b/make_dist.sh index b4d7deb49..62bad3ede 100755 --- a/make_dist.sh +++ b/make_dist.sh @@ -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 @@ tag=trunk 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"