emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master a2003f9: * admin/nt/dist-build/build-zips.sh: Suppo


From: Phillip Lord
Subject: [Emacs-diffs] master a2003f9: * admin/nt/dist-build/build-zips.sh: Support building of branches
Date: Thu, 3 May 2018 16:15:58 -0400 (EDT)

branch: master
commit a2003f9663e5649894b05695f7f2b11a3fa96339
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 | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/admin/nt/dist-build/build-zips.sh 
b/admin/nt/dist-build/build-zips.sh
index ec41ec8..d954683 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 "36gb:hnsiV:" opt; do
   case $opt in
     3)
         BUILD_32=1
@@ -132,6 +132,10 @@ while getopts "36ghnsiV:" opt; do
     i)
         BUILD=0
         ;;
+    b)
+        REQUIRED_BRANCH=$OPTARG
+        echo "Setting Required branch $REQUIRED_BRANCH"
+        ;;
     V)
         VERSION=$OPTARG
         ;;
@@ -185,6 +189,17 @@ else
     OF_VERSION="$VERSION-`date +%Y-%m-%d`"
 fi
 
+echo Checking for required branch
+if [ -n $REQUIRED_BRANCH ];
+then
+    BRANCH=$REQUIRED_BRANCH
+    echo [build] Building from Branch $BRANCH
+    VERSION=$VERSION-$BRANCH
+    OF_VERSION="$VERSION-`date +%Y-%m-%d`"
+    ## Use snapshot dependencies
+    SNAPSHOT=1
+fi
+
 if (($GIT_UP))
 then
     git_up



reply via email to

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