[texmaker] 26/103: updating get-orig-source rule

Andreas Tille tille at debian.org
Sun Sep 10 17:38:27 UTC 2017


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

tille pushed a commit to branch master
in repository texmaker.

commit a7985ff3ca2e5477d38cfbdddbcbf9901f1f5a88
Author: Ruben Molina <rmolina at udea.edu.co>
Date:   Sat Jul 4 04:59:48 2009 +0000

    updating get-orig-source rule
---
 debian/changelog | 3 ++-
 debian/rules     | 7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index aa0a654..6b0bc74 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,9 @@ texmaker (1.9.2-2) UNRELEASED; urgency=low
   * Two sed lines added to debian/rules to fix a pedantic lintian warning
     (spelling-error-in-binary). Not important enough to add a patch system.
   * Updated short description
+  * Added an idempotent get-orig-source rule.
 
- -- Ruben Molina <rmolina at udea.edu.co>  Thu, 02 Jul 2009 14:19:52 -0500
+ -- Ruben Molina <rmolina at udea.edu.co>  Fri, 03 Jul 2009 23:13:53 -0500
 
 texmaker (1.9.2-1) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index 881f6ac..6dbe454 100755
--- a/debian/rules
+++ b/debian/rules
@@ -80,10 +80,11 @@ binary-arch: build install
 	dh_md5sums
 	dh_builddeb
 
+DEB_ROOT = $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../)
+UPSTREAM_VERSION ?=$(shell uscan --dehs ${DEB_ROOT} | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
 get-orig-source:
-	# Hmmm, somehow it does not yet work to us bzipeed source files -
-	# perhaps somebody else is more clever than me
-	echo "Try `bzcat texmaker-1.9.2.tar.bz2 | gzip -9 - > texmaker_1.9.2.orig.tar.gz` to get the orig.tar.gz"
+	cd ${DEB_ROOT} && uscan --force-download --no-symlink
+	bzcat ${DEB_ROOT}/../texmaker-${UPSTREAM_VERSION}.tar.bz2 | gzip -9fn -c - > ${DEB_ROOT}/../texmaker_${UPSTREAM_VERSION}.orig.tar.gz
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install configure

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



More information about the debian-science-commits mailing list