-*- mode: markdown; -*-

Preparing a new release
=======================

Prepare the environment:

    export VERSION=XXX

Checkout the correct branch:

    git checkout master

Add an entry for the new version to debian/changelog:

    git-dch --new-version="$VERSION" --auto && dch -e

Update the packaging, and then update `debian/changelog` again
if needed.

Commit the changelog:

    git commit debian/changelog -m "$(head -n 1 debian/changelog | sed -e 's,).*,),')"

Build a new Debian package:

    git-buildpackage

If everything is fine, tag the release and push the changes:

    git-buildpackage --git-tag-only --git-sign-tags && \
    git push && git push --tags
