[Pkg-ocaml-maint-commits] [SCM] dose3 packaging branch, master, updated. upstream/0.7-54-g2158967

Ralf Treinen treinen at debian.org
Wed Nov 10 14:35:55 UTC 2010


The following commit has been merged in the master branch:
commit da45234a5b2478857b5e57798e45d84e6831ead2
Author: Ralf Treinen <treinen at debian.org>
Date:   Wed Nov 10 15:19:26 2010 +0100

    uses bash's builtin regexp matching

diff --git a/debian/rules b/debian/rules
index ecea418..5e96098 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,10 +3,10 @@ SHELL=/bin/bash
 
 SRCV := $(shell dpkg-parsechangelog | sed -n '/^Version:/{s|Version: *||p;q}')
 
-# bin packages that get the same version as the source
+# binary packages that get the same version as the source
 NOEPOCH = libdose3-ocaml-dev
 
-# bin packages that have their version with epoch 1
+# binary packages that have their version with epoch 1
 EPOCHED  = edos-distcheck edos-builddebcheck ceve
 
 %:
@@ -18,11 +18,11 @@ override_dh_auto_configure:
 override_dh_gencontrol:
 	(these=`dh_listpackages`;\
 	 for pkg in $(NOEPOCH); do\
-		if [[ $${these/*$$pkg*/@yes@} = "@yes@" ]];\
+		if [[ $$these =~ .*^$$pkg$$.* ]];\
 		then dh_gencontrol -p$$pkg; fi;\
          done;\
 	 for pkg in $(EPOCHED); do\
-		if [[ $${these/*$$pkg*/@yes@} = "@yes@" ]];\
+		if [[ $$these =~ .*^$$pkg$$.* ]];\
 		then dh_gencontrol -p$$pkg -- -v1:$(SRCV); fi;\
          done)
 

-- 
dose3 packaging



More information about the Pkg-ocaml-maint-commits mailing list