[urdfdom] 03/03: Implementation of get-orig-source

Jose Luis Rivero jrivero-guest at moszumanska.debian.org
Thu Jan 9 13:35:39 UTC 2014


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

jrivero-guest pushed a commit to branch master
in repository urdfdom.

commit ae936aa3d65eada5f5a9f19a3f55d265c534341f
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date:   Thu Jan 9 13:31:46 2014 +0000

    Implementation of get-orig-source
---
 debian/rules | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 5252e48..18d9c9c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,12 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-.PHONY: override_dh_auto_clean override_dh_strip
+# Variables for get-orig-source
+PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG  = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d- -f1 | sed -e 's/+dfsg//')
+
+.PHONY: override_dh_auto_clean override_dh_strip get-orig-source
 
 %:
 	dh  $@ --parallel
@@ -13,3 +18,8 @@ override_dh_auto_clean:
 
 override_dh_strip:
 	dh_strip -a --dbg-package=liburdfdom0.2-dbg
+
+## http://wiki.debian.org/onlyjob/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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/urdfdom.git



More information about the debian-science-commits mailing list