Allow generating source in git from tags

remotes/origin/mika/no_changes
Alexander Wirt 14 years ago committed by Michael Prokop
parent cfb65f6e9d
commit 7edb115b86

@ -104,6 +104,18 @@ if [ "${1:-}" = "auto" ] ; then
elif [ -r debian/gbp.conf ] ; then
echo "Found debian/gbp.conf, using git-dch with auto mode."
git_dch_auto
elif [ -n "${tag:-}" ] ; then
echo "Tag parameter found, don't generate changelog"
git checkout ${tag}
VERSION="$(parsechangelog -c 1 | awk '/Version/ {print $2}')"
if [ -n "${distribution}" ] ; then
echo "Distribution found. Add distribution specific version"
dch -b -v "${VERSION}~${distribution}+${BUILD_NUMBER}" \
"Auto Build for ${distribution}"
else
dch -v "${VERSION}+${BUILD_NUMBER}" \
"Auto build from jenkins"
fi
else
echo "Trying to identify latest tag / merge..."

Loading…
Cancel
Save