Now we can build a particular tag
This commit is contained in:
@ -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}
|
||||
|
Reference in New Issue
Block a user