emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/windows-branch-build-2 c8af404: * admin/nt/dist-bu


From: Phillip Lord
Subject: [Emacs-diffs] scratch/windows-branch-build-2 c8af404: * admin/nt/dist-build/build-zips.sh: Support building of branches
Date: Sun, 8 Apr 2018 09:14:44 -0400 (EDT)

branch: scratch/windows-branch-build-2
commit c8af404c74031ff6531f665182079839a1e56ec8
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>

    * admin/nt/dist-build/build-zips.sh: Support building of branches
---
 admin/nt/dist-build/build-zips.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/admin/nt/dist-build/build-zips.sh 
b/admin/nt/dist-build/build-zips.sh
index ec41ec8..f477e12 100755
--- a/admin/nt/dist-build/build-zips.sh
+++ b/admin/nt/dist-build/build-zips.sh
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]