[SCM] easytag/master: Add get-orig-source rule

lucidfox-guest at users.alioth.debian.org lucidfox-guest at users.alioth.debian.org
Mon May 2 12:37:18 UTC 2011


The following commit has been merged in the master branch:
commit 73ac02fbec6554b61418301917b903bc1a5cfadd
Author: Maia Kozheva <sikon at ubuntu.com>
Date:   Mon May 2 19:04:48 2011 +0700

    Add get-orig-source rule

diff --git a/debian/rules b/debian/rules
index fc867bf..b4c45c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,3 +12,11 @@ clean::
 install/easytag::
 	# The changelog is installed in /usr/share/doc/easytag/changelog.gz
 	rm debian/easytag/usr/share/easytag/ChangeLog
+
+VERSION = $(shell dpkg-parsechangelog | grep "^Version:" | sed -r "s/Version: (.*)-.*/\1/")
+
+get-orig-source:
+	cd debian && git clone --depth 1 git://github.com/stsquad/easytag.git
+	cd debian/easytag && git archive --format=tar --prefix=easytag-$(VERSION)/ HEAD | \
+		gzip -9c > ../../../easytag_$(VERSION).orig.tar.gz
+	rm -rf debian/easytag

-- 
easytag packaging



More information about the pkg-multimedia-commits mailing list