[libcsfml] 09/20: Use uscan --download-current-version to simplify d/rules

James Cowgill jcowgill-guest at moszumanska.debian.org
Tue Mar 3 23:56:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

jcowgill-guest pushed a commit to branch master
in repository libcsfml.

commit 6ebd25315833c4cce33290cdf550bef53f377f18
Author: James Cowgill <james410 at cowgill.org.uk>
Date:   Tue Mar 3 21:06:25 2015 +0000

    Use uscan --download-current-version to simplify d/rules
---
 debian/rules | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/debian/rules b/debian/rules
index d078ae3..da02e42 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,7 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
 PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
-PKG  = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
-VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
-
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 %:
@@ -21,6 +15,5 @@ override_dh_strip:
 
 ## http://wiki.debian.org/onlyjob/get-orig-source
 .PHONY: get-orig-source
-get-orig-source:  $(info I: $(PKG)_$(VER))
-	@echo "# Downloading..."
-	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+get-orig-source:
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-current-version $(PKD)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/libcsfml.git



More information about the Pkg-games-commits mailing list