From 63854159db02d983829fc1ffc649bad8e6f7c6f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 16 Feb 2016 14:46:46 +0100 Subject: [PATCH] simplified get-orig-source rule --- debian/rules | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/debian/rules b/debian/rules index d19d5ee..c067ecb 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,6 @@ # Path to the debian directory DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname ) UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*\(.*\)<\/upstream-version>.*/\1/p') -DFSG = dfsg1 PKG = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p') DATE := $(shell date -u -d "$$(dpkg-parsechangelog -SDate)" +"%Y/%m/%d") @@ -26,15 +25,6 @@ override_dh_auto_test: HOME=/tmp dh_auto_test -a || (grep . test-suite.log giada_test.log; false) #make check || (grep . test-suite.log giada_test.log; false) +## all the file-exclusion magic is handled by debian/copyright get-orig-source: - uscan --noconf --force-download --rename --download-current-version --destdir=. - tar -xf $(PKG)_$(UPSTREAM_VERSION).orig.tar.gz - mv $(PKG)-$(UPSTREAM_VERSION) $(PKG)-$(UPSTREAM_VERSION)~$(DFSG) - rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/src/rtaudio-mod/include - rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/src/vst - rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/src/*.dll - rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/.gitignore - XZ_OPT=-9 tar cJf ../$(PKG)_$(UPSTREAM_VERSION)~$(DFSG).orig.tar.xz $(PKG)-$(UPSTREAM_VERSION)~$(DFSG) - rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG) - rm -rf $(PKG)_$(UPSTREAM_VERSION).orig.tar.gz - + uscan --download -- 2.30.2