--- /dev/null
+#! /bin/sh
+set -e
+
+LOG="$(dpkg-parsechangelog)"
+SOURCE="$(echo "$LOG" | awk '/^Source:/ { print $2 }')"
+VERSION="$(echo "$LOG" | awk '/^Version:/ { print $2 }')"
+VERSION_NOEPOCH="${VERSION#*:}"
+
+CURDIR="$(pwd)"
+
+dch -v"${VERSION}ubuntu1" -D UNRELEASED 'Resynchronise with Debian. Remaining changes:'
+
+if [ "${CURDIR##*/}" = "$SOURCE-$VERSION_NOEPOCH" ]; then
+ echo cd "${CURDIR}ubuntu1"
+fi