]> git.eshelyaron.com Git - emacs.git/commitdiff
* admin/nt/dist-build/build-zips.sh: Support building of branches
authorPhillip Lord <phillip.lord@russet.org.uk>
Sun, 8 Apr 2018 12:40:48 +0000 (13:40 +0100)
committerPhillip Lord <phillip.lord@russet.org.uk>
Sun, 8 Apr 2018 13:13:15 +0000 (14:13 +0100)
admin/nt/dist-build/build-zips.sh

index ec41ec8c46ae68d6cb4dd078eb240c44c4866ddf..f477e12869228b91dff14e8da930e98bcf62d3c6 100755 (executable)
@@ -108,7 +108,7 @@ BUILD_64=1
 GIT_UP=0
 CONFIG=1
 
-while getopts "36ghnsiV:" opt; do
+while getopts "36gbhnsiV:" opt; do
   case $opt in
     3)
         BUILD_32=1
@@ -132,6 +132,9 @@ while getopts "36ghnsiV:" opt; do
     i)
         BUILD=0
         ;;
+    b)
+        REQUIRED_BRANCH=$OPTARG
+        ;;
     V)
         VERSION=$OPTARG
         ;;
@@ -185,6 +188,12 @@ else
     OF_VERSION="$VERSION-`date +%Y-%m-%d`"
 fi
 
+if [ -z $REQUIRED_BRANCH ];
+then
+   BRANCH=$REQUIRED_BRANCH
+   OF_VERSION="$VERSION-$BRANCH-`date +%Y-%m-%d`"
+fi
+
 if (($GIT_UP))
 then
     git_up