r35786 - in /packages/texmaker/trunk/debian: changelog rules

rmolina-guest at users.alioth.debian.org rmolina-guest at users.alioth.debian.org
Sat Jul 4 04:59:51 UTC 2009


Author: rmolina-guest
Date: Sat Jul  4 04:59:48 2009
New Revision: 35786

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=35786
Log:
updating get-orig-source rule

Modified:
    packages/texmaker/trunk/debian/changelog
    packages/texmaker/trunk/debian/rules

Modified: packages/texmaker/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/texmaker/trunk/debian/changelog?rev=35786&op=diff
==============================================================================
--- packages/texmaker/trunk/debian/changelog (original)
+++ packages/texmaker/trunk/debian/changelog Sat Jul  4 04:59:48 2009
@@ -6,8 +6,9 @@
   * 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
 

Modified: packages/texmaker/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/texmaker/trunk/debian/rules?rev=35786&op=diff
==============================================================================
--- packages/texmaker/trunk/debian/rules (original)
+++ packages/texmaker/trunk/debian/rules Sat Jul  4 04:59:48 2009
@@ -80,10 +80,11 @@
 	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




More information about the debian-science-commits mailing list