From: Colin Watson Date: Tue, 15 Apr 2008 16:11:20 +0000 (+0000) Subject: add ubuntu-make-mergelog convenience wrapper around dch X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=commitdiff_plain;h=7e1a2a6293aec46c8d389fdc9564c2f334deb216 add ubuntu-make-mergelog convenience wrapper around dch --- diff --git a/ubuntu-make-mergelog b/ubuntu-make-mergelog new file mode 100755 index 0000000..1d3899d --- /dev/null +++ b/ubuntu-make-mergelog @@ -0,0 +1,15 @@ +#! /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