]> 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>
Thu, 3 May 2018 20:15:12 +0000 (21:15 +0100)
admin/nt/dist-build/build-zips.sh

index ec41ec8c46ae68d6cb4dd078eb240c44c4866ddf..d954683c8f5c5988d4a2e3b8a5ce439768d4cea9 100755 (executable)
@@ -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