Commit dfc9e425 authored by Cyril Brulebois's avatar Cyril Brulebois

Add tagging script by Julien.

parent afb6ced9
#!/bin/bash
set -e
package=$(dpkg-parsechangelog | awk '/^Source: / { print $2 }')
version=$(dpkg-parsechangelog | awk '/^Version: / { print $2 }')
dist=$(dpkg-parsechangelog | awk '/^Distribution: / { print $2 }')
if [ -z "$package" ]; then
echo debian/changelog not found >&2
exit 1
fi
if [ "$dist" = UNRELEASED ]; then
echo "can't upload to UNRELEASED" >&2
exit 1
fi
tagversion=${version/:/_}
tagversion=${tagversion/\~/-}
tag=${package}-${tagversion}
git tag -s -m "Tagging upload of $package $version to $dist." $tag
echo Tagged $tag
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment