chiark / gitweb /
my-debmirror: drop d-i images
[bin.git] / ubuntu-make-mergelog
1 #! /bin/sh
2 set -e
3
4 LOG="$(dpkg-parsechangelog)"
5 SOURCE="$(echo "$LOG" | awk '/^Source:/ { print $2 }')"
6 VERSION="$(echo "$LOG" | awk '/^Version:/ { print $2 }')"
7 VERSION_NOEPOCH="${VERSION#*:}"
8
9 CURDIR="$(pwd)"
10
11 dch -v"${VERSION}ubuntu1" -D UNRELEASED 'Resynchronise with Debian.  Remaining changes:'
12
13 if [ "${CURDIR##*/}" = "$SOURCE-$VERSION_NOEPOCH" ]; then
14         echo cd "${CURDIR}ubuntu1"
15 fi