allow to build branches

This commit is contained in:
Roland Gruber 2017-10-15 10:53:07 +02:00
parent ddf2e22e91
commit 696ec86674
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,7 @@
if [ $# -lt 1 ] if [ $# -lt 1 ]
then then
echo -e "Usage: buildPackage <tag>" echo -e "Usage: buildPackage <tag>, buildPackage develop, buildPackage -b branch"
exit exit
fi fi
@ -15,6 +15,9 @@ cd /daten/projekte/lam/pakete
if [ "$1" = "develop" ] if [ "$1" = "develop" ]
then then
export REPO_BRANCH="develop" export REPO_BRANCH="develop"
elif [ "$1" = "-b" ]
then
export REPO_BRANCH="$2"
else else
export REPO_BRANCH="tags/$1" export REPO_BRANCH="tags/$1"
fi fi