[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:36:02 UTC 2010
The following commit has been merged in the master branch:
commit 3bc3d84e03489ab02fbf6222a775e3b342bbe397
Author: Ralf Treinen <treinen at debian.org>
Date: Wed Nov 10 15:26:22 2010 +0100
simplify detection of versionend packages
diff --git a/debian/rules b/debian/rules
index 5e96098..a532b2a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,11 +3,8 @@ SHELL=/bin/bash
SRCV := $(shell dpkg-parsechangelog | sed -n '/^Version:/{s|Version: *||p;q}')
-# binary packages that get the same version as the source
-NOEPOCH = libdose3-ocaml-dev
-
# binary packages that have their version with epoch 1
-EPOCHED = edos-distcheck edos-builddebcheck ceve
+EPOCHED = "|edos-distcheck|edos-builddebcheck|ceve|"
%:
dh $@ --with ocaml
@@ -16,13 +13,10 @@ override_dh_auto_configure:
./configure --with-xml --with-ocamlgraph -- with-zip --with-bz2
override_dh_gencontrol:
- (these=`dh_listpackages`;\
- for pkg in $(NOEPOCH); do\
- if [[ $$these =~ .*^$$pkg$$.* ]];\
- then dh_gencontrol -p$$pkg; fi;\
- done;\
- for pkg in $(EPOCHED); do\
- if [[ $$these =~ .*^$$pkg$$.* ]];\
- then dh_gencontrol -p$$pkg -- -v1:$(SRCV); fi;\
- done)
+ for pkg in `dh_listpackages`; do\
+ if [[ $(EPOCHED) =~ .*|$$pkg|.* ]];\
+ then dh_gencontrol -p$$pkg -- -v1:$(SRCV);\
+ else dh_gencontrol -p$$pkg;\
+ fi;\
+ done
--
dose3 packaging
More information about the Pkg-ocaml-maint-commits
mailing list