From 614eb957a855b95e3ee9cde05c34b188c96d4b31 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 24 Jun 2013 02:04:54 +0000 Subject: [PATCH] debian/watch: Add watch file and update script svn path=/dists/trunk/linux/; revision=20290 --- debian/bin/uscan-hook | 19 +++++++++++++++++++ debian/changelog | 1 + debian/watch | 4 ++++ 3 files changed, 24 insertions(+) create mode 100755 debian/bin/uscan-hook create mode 100644 debian/watch diff --git a/debian/bin/uscan-hook b/debian/bin/uscan-hook new file mode 100755 index 000000000..b0631c64e --- /dev/null +++ b/debian/bin/uscan-hook @@ -0,0 +1,19 @@ +#!/bin/bash -e + +# This script is invoked by uscan after downloading a new tarball + +if [ "x$1" != "x--upstream-version" -o $# != 3 ]; then + echo >&2 "invalid arguments: $*" + exit 2 +fi + +version="$2" +filename="$3" + +upstream_tarball="$(readlink -f "$filename")" +rm "$filename" +debian/bin/genorig.py --override-version "$version" "$upstream_tarball" + +dch -v "$version-1" 'New upstream release' + +debian/rules orig diff --git a/debian/changelog b/debian/changelog index 0117d3de9..7bad9570d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,7 @@ linux (3.10~rc7-1~exp1) UNRELEASED; urgency=low - Add EMAC Controller to Hackberry dt * [x86] cpufreq: Enable X86_INTEL_PSTATE (Closes: #712062) * debian/control: Add Homepage field + * debian/watch: Add watch file and update script -- Ben Hutchings Thu, 13 Jun 2013 01:50:52 +0100 diff --git a/debian/watch b/debian/watch new file mode 100644 index 000000000..09e8e35c3 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +# Find first non-rc tarball linked from kernel.org. +# We need to DFSG-clean it, so use our own script instead of uupdate. +version=3 +https://www.kernel.org/ .*/linux-([0-9.]+).tar.xz debian debian/bin/uscan-hook