[med-svn] r13495 - trunk/packages/gnuhealth/trunk/debian

Dmitry Smirnov onlyjob at alioth.debian.org
Sun May 5 23:17:13 UTC 2013


Author: onlyjob
Date: 2013-05-05 23:17:13 +0000 (Sun, 05 May 2013)
New Revision: 13495

Modified:
   trunk/packages/gnuhealth/trunk/debian/rules
Log:
fixing get-orig-source

Modified: trunk/packages/gnuhealth/trunk/debian/rules
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/rules	2013-05-05 12:13:50 UTC (rev 13494)
+++ trunk/packages/gnuhealth/trunk/debian/rules	2013-05-05 23:17:13 UTC (rev 13495)
@@ -35,6 +35,9 @@
 override_dh_builddeb:
 	dh_builddeb -- -Zxz
 
+DPATH := $(abspath $(dir $(MAKEFILE_LIST)))
+VER   ?= $(shell dpkg-parsechangelog -l$(DPATH)/changelog | perl -ne 'print $$1 if m{Version:\s*([\d\.]+)}')
+.PHONY: get-orig-source
 get-orig-source:
-	mkdir -p ../tarballs
-	uscan --verbose --force-download --destdir=../tarballs
+	@echo "# Downloading..."
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(DPATH)




More information about the debian-med-commit mailing list