Now we can build a particular tag

This commit is contained in:
2015-08-20 17:35:43 +02:00
parent 82df5bffea
commit eb43a3188a
3 changed files with 24 additions and 6 deletions

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash
source "${TAMARIN_UTIL}"
if [ -f debian/changelog ] || [ ! -d .git ]; then
@ -9,7 +8,22 @@ fi
# Get commits log as changelog
tags=$(git tag master -l "release/*"|sort -r)
BUILD_BRANCH=$(get_opt build_branch dist/ubuntu/precise/master)
BUILD_TAG=$(get_opt build_tag "last")
echo "BUILD TAG IS ${BUILD_TAG}"
if [[ ${BUILD_TAG} == "last" ]]
then
git checkout ${BUILD_BRANCH}
tags=$(git tag master -l "release/*"|sort -r)
else
info "DEBUG DEBUG DEBUG "
tagbranch="build-tag-${BUILD_TAG}"
git checkout -b ${tagbranch}
set_opt "tag_branch" "${tag_branch}"
tags="${BUILD_TAG}"
fi
if [[ -z ${tags} ]]
then
@ -17,7 +31,6 @@ then
exit 2
fi
git checkout $(get_opt build_branch dist/ubuntu/precise/master)
touch debian/changelog
for tag in ${tags}