#!/bin/bash -e

gbp dch --debian-branch absurd -R --since=master --distribution="bookworm-ab-unstable" --force-distribution --new-version=0.9.7+$(date "+%Y%m%d")~ab12+1
debchange --append "MINI_BUILDD_OPTION: auto-ports=trixie-ab-unstable"
DST_VERSION=$(dpkg-parsechangelog --show-field="Version")
gbp buildpackage --git-ignore-new

CHANGES=../xpadneo_${DST_VERSION}_amd64.changes
read -p "Upload ${CHANGES}?" DUMMY
dput mini-buildd-hellfield ../xpadneo_${DST_VERSION}_amd64.changes
