* admin/nt/dist-build/build-zips.sh: Support building of branches

This commit is contained in:
Phillip Lord 2018-04-08 13:40:48 +01:00
parent ef1deb48f4
commit a2003f9663

View file

@ -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