From 98ac510522c8f44aff1f9f1eaf027f2817ffe7c1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 13 Oct 2013 14:53:32 -0400 Subject: debian/rules: Add {get,unpack}-orig-source. --- diff --git a/debian/rules b/debian/rules index 9b040d7..c61818f 100755 --- a/debian/rules +++ b/debian/rules @@ -8,3 +8,21 @@ override_dh_auto_configure: dh_auto_configure -- --libdir=/usr/share + +get-orig-source: + uscan --noconf --verbose --rename --force-download \ + --download-current-version + +unpack-orig-source: + for f in *; do \ + if [ -e $${f} ] && [ $${f} != debian ]; then \ + rm -Rf $${f}; \ + fi; \ + done + set -e; \ + source=$$(dpkg-parsechangelog | sed -n 's/^Source: //p'); \ + version=$$(dpkg-parsechangelog | \ + sed -n 's/^Version: \([^-]*\).*$$/\1/p'); \ + tar -xJf ../$${source}_$${version}.orig.tar.xz; \ + mv $${source}-$${version}/* .; \ + rmdir $${source}-$${version}/ -- cgit v0.9.1