[Python-apps-commits] r8239 - in packages/mercurial/trunk/debian (rules)
vicho at users.alioth.debian.org
vicho at users.alioth.debian.org
Mon Feb 27 23:18:16 UTC 2012
Date: Monday, February 27, 2012 @ 23:18:15
Author: vicho
Revision: 8239
Parse DEB_BUILD_OPTIONS as described in the debian-policy instead of using a hacky awk one-liner.
Thanks to Julien Cristau for pointing this out.
Modified:
packages/mercurial/trunk/debian/rules (contents, properties)
Modified: packages/mercurial/trunk/debian/rules
===================================================================
--- packages/mercurial/trunk/debian/rules 2012-02-27 19:14:25 UTC (rev 8238)
+++ packages/mercurial/trunk/debian/rules 2012-02-27 23:18:15 UTC (rev 8239)
@@ -11,7 +11,10 @@
# Do not start a line with a word with a dot in a manpage
sed -i -e 's,^[.]\(hgignore\|hg/hgrc\),\\fP\1,' doc/hg.1
-PARALLEL_TEST_JOBS := $(shell printenv DEB_BUILD_OPTIONS | awk -F= 'BEGIN {RS=" "} /parallel/ {print "--jobs " $$2}')
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ PARALLEL_TEST_JOBS := --jobs $(NJOBS)
+endif
override_dh_auto_test:
dh_auto_test -- TESTFLAGS="--timeout 480 $(PARALLEL_TEST_JOBS) --blacklist $(CURDIR)/debian/mercurial.test_blacklist"
More information about the Python-apps-commits
mailing list