[SCM] Debian packaging of libdevel-cover-perl branch, master, updated. upstream/0.79-71-gd5ecda2

gregor herrmann gregoa at debian.org
Thu Dec 22 16:29:37 UTC 2011


The following commit has been merged in the master branch:
commit 48c35f64ba072f12f6fb8a209346a3bba87925bc
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Dec 22 17:24:46 2011 +0100

    Unify "sameperl" substvar generation in libclass-xsaccessor-perl, libdevel-cover-perl, libpar-packer-perl.

diff --git a/debian/rules b/debian/rules
index 38cc051..d2018ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,10 @@
 #!/usr/bin/make -f
 
-PERL_REVISION=$(shell perl -MConfig -e 'print $$Config{PERL_REVISION}')
-PERL_VERSION=$(shell perl -MConfig -e 'print $$Config{PERL_VERSION}')
-PERL_SUBVERSION=$(shell perl -MConfig -e 'print $$Config{PERL_SUBVERSION}')
-PERL_NEXT_SUBVERSION=$(shell perl -MConfig -e 'print 1+$$Config{PERL_SUBVERSION}')
-
-PERL_FULLVERS=$(PERL_REVISION).$(PERL_VERSION).$(PERL_SUBVERSION)
-PERL_NEXTVERS=$(PERL_REVISION).$(PERL_VERSION).$(PERL_NEXT_SUBVERSION)
+PERL_CURRENT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}.$$Config{subversion}"')
+PERL_NEXT    := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}." . ($$Config{subversion} + 1)')
 
 %:
 	dh $@
 
 override_dh_gencontrol:
-	dh_gencontrol -- -V"sameperl:Depends=perl (>= $(PERL_FULLVERS)), perl (<< $(PERL_NEXTVERS)~)"
+	dh_gencontrol -- -V'sameperl:Depends=perl (>= $(PERL_CURRENT)), perl (<< $(PERL_NEXT)~)'

-- 
Debian packaging of libdevel-cover-perl



More information about the Pkg-perl-cvs-commits mailing list