Rev 245: Remove complex build options regex in favor of simpler solution. in http://people.samba.org/bzr/jelmer/bzr-svn/debian

Jelmer Vernooij jelmer at samba.org
Mon Mar 19 16:32:34 GMT 2007


At http://people.samba.org/bzr/jelmer/bzr-svn/debian

------------------------------------------------------------
revno: 245
revision-id: jelmer at samba.org-20070312105542-9k6ba6u2ywb4eaij
parent: jelmer at samba.org-20070130115712-ywbqrfi2502cip7w
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: debian
timestamp: Mon 2007-03-12 11:55:42 +0100
message:
  Remove complex build options regex in favor of simpler solution.
modified:
  debian/rules                   rules-20061009030331-beff4307o0ccq70i-7
=== modified file 'debian/rules'
--- a/debian/rules	2007-01-16 10:34:08 +0000
+++ b/debian/rules	2007-03-12 10:55:42 +0000
@@ -5,15 +5,11 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
-# turn DEB_BUILD_OPTIONS='foo,bar' into DEB_BUILD_OPT_FOO and DEB_BUILD_OPT_BAR
-d_b_o:=$(shell echo "$$DEB_BUILD_OPTIONS"|sed 's/[^-[:alnum:]]/ /g'|tr a-z A-Z)
-$(foreach o, $(d_b_o), $(eval DEB_BUILD_OPT_$o := 1))
-
 clean::
 	-rm -rf build test*.tmp 
 	find . -name "*.pyc" -print0 | xargs -0 rm -f
 
-ifndef DEB_BUILD_OPT_NOTEST
+ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
 common-post-build-indep::	
 	BZR_PLUGIN_PATH=build/lib/bzrlib/plugins/ bzr selftest svn
 endif




More information about the bazaar-commits mailing list