[redeclipse-data] 27/27: Include default dpkg vars for get-orig-source version

Martin Werner arand-guest at moszumanska.debian.org
Sat Apr 4 00:56:15 UTC 2015


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

arand-guest pushed a commit to branch next
in repository redeclipse-data.

commit 70e7333c5ed44af4c458bd8c971486e754dd05f6
Author: Martin Erik Werner <martinerikwerner at gmail.com>
Date:   Sat Apr 4 01:45:27 2015 +0200

    Include default dpkg vars for get-orig-source version
---
 debian/rules | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index 8bd9085..2c0c95b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
 %:
 	dh $@ --parallell
 
@@ -18,17 +21,16 @@ override_dh_install:
 override_dh_builddeb:
 	dh_builddeb -- -Zxz
 
-VER=$(shell dpkg-parsechangelog | sed -rne 's/^Version: ([^-]+).*/\1/p')
-DIR=redeclipse-data-$(VER).orig
+DIR=redeclipse-data-$(DEB_VERSION_UPSTREAM).orig
 get-orig-source:
 	uscan --noconf --rename --force-download --download-current-version \
 		--destdir=.
 	rm -rf $(DIR)
-	tar -xf redeclipse-data_$(VER).orig.tar.gz
-	rm -f redeclipse-data_$(VER).orig.tar.gz
-	mv data-$(VER)/ $(DIR)
+	tar -xf redeclipse-data_$(DEB_VERSION_UPSTREAM).orig.tar.gz
+	rm -f redeclipse-data_$(DEB_VERSION_UPSTREAM).orig.tar.gz
+	mv data-$(DEB_VERSION_UPSTREAM)/ $(DIR)
 	rm -rf $(DIR)/fonts
 	find $(DIR) -type f -name '.git*' -delete
 	XZ_OPT="-6" tar --create --xz --owner root --group root --mode a+rX \
-		-f redeclipse-data_$(VER).orig.tar.xz $(DIR)
+		-f redeclipse-data_$(DEB_VERSION_UPSTREAM).orig.tar.xz $(DIR)
 	rm -rf $(DIR)

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



More information about the Pkg-games-commits mailing list