[Python-modules-commits] r20447 - in packages/greekocr4gamera/trunk/debian (changelog rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Mon Feb 13 23:18:34 UTC 2012


    Date: Monday, February 13, 2012 @ 23:18:31
  Author: jwilk
Revision: 20447

Use xargs to iterate over all Python versions.

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

Modified: packages/greekocr4gamera/trunk/debian/changelog
===================================================================
--- packages/greekocr4gamera/trunk/debian/changelog	2012-02-13 22:07:29 UTC (rev 20446)
+++ packages/greekocr4gamera/trunk/debian/changelog	2012-02-13 23:18:31 UTC (rev 20447)
@@ -1,3 +1,9 @@
+greekocr4gamera (1.0.1-2) UNRELEASED; urgency=low
+
+  * Use xargs to iterate over all Python versions.
+
+ -- Jakub Wilk <jwilk at debian.org>  Tue, 14 Feb 2012 00:18:07 +0100
+
 greekocr4gamera (1.0.1-1) experimental; urgency=low
 
   * Initial release (closes: #648851).

Modified: packages/greekocr4gamera/trunk/debian/rules
===================================================================
--- packages/greekocr4gamera/trunk/debian/rules	2012-02-13 22:07:29 UTC (rev 20446)
+++ packages/greekocr4gamera/trunk/debian/rules	2012-02-13 23:18:31 UTC (rev 20447)
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+python_all = pyversions -r $(CURDIR)/debian/control | tr ' ' '\n' | xargs -t -I {} env {}
+
 .PHONY: clean
 clean:
 	dh_clean
@@ -9,10 +11,7 @@
 .PHONY: build build-arch build-indep
 build build-indep:
 	dh_testdir
-	set -ex; \
-	for python in $(shell pyversions -r); do \
-		$$python setup.py build; \
-	done
+	$(python_all) setup.py build
 	rst2man debian/greekocr4gamera.rst > debian/greekocr4gamera.1
 
 .PHONY: binary binary-arch binary-indep
@@ -20,9 +19,7 @@
 	dh_testdir
 	dh_testroot
 	dh_prep
-	for python in $(shell pyversions -r); do \
-		$$python setup.py install --prefix=/usr --root=debian/python-gamera.toolkits.greekocr/; \
-	done
+	$(python_all) setup.py install --prefix=/usr --root=debian/python-gamera.toolkits.greekocr/
 	cd debian/*/usr/bin/ && \
 		rename.ul '.py' '' greekocr4gamera.py && \
 		sed -i -e '1s,^#!.*,#!/usr/bin/python,' greekocr4gamera




More information about the Python-modules-commits mailing list