This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository pdl.

commit 49af60e014d7431634769df7ba76683727ca31b6
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Sun Jun 12 22:30:23 2016 +0200

    Regenerate control files from templates in separate target.
---
 debian/changelog |  1 +
 debian/rules     | 16 ++++++++--------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 862d7e9..aa696c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -30,6 +30,7 @@ pdl (1:2.016-1) UNRELEASED; urgency=medium
   * Add libinline-c-perl to (build) dependencies.
   * Ignore test failures to not fail the entire build.
   * Add patch to fix doc_vendor_install target by supporting DESTDIR.
+  * Regenerate control files from templates in separate target.
 
  -- Bas Couwenberg <sebas...@debian.org>  Sun, 12 Jun 2016 16:00:28 +0200
 
diff --git a/debian/rules b/debian/rules
index c030d9e..27a6964 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,13 @@ subst_pdlapi = -Vpdlapi:Provides="`perl -Mblib 
-MPDL::Config::Debian -e 'print \
 
 vendorarch := $(shell perl -MConfig -e 'print substr($$Config{vendorarch}, 1)')
 
+TEMPLATES=$(wildcard debian/*.in)
+
+templates:
+       for TEMPLATE in $(TEMPLATES) ; do \
+           sed -e 's,@vendorarch@,$(vendorarch),g' $$TEMPLATE > `echo 
$$TEMPLATE | sed 's/.in$$//'` ; \
+       done
+
 %:
        dh $@ --parallel
 
@@ -19,7 +26,7 @@ override_dh_clean:
        dh_clean t/callext.o t/callext.so Graphics/TriD/OpenGL/tmp*.h-out \
                 Perldl2/pdl2.pod debian/dh_pdl.1
 
-override_dh_auto_configure:
+override_dh_auto_configure: templates
        dh_auto_configure -- F77CONF=debian/f77conf.pl \
                             PDLCONF=debian/perldl.conf
 
@@ -44,13 +51,6 @@ override_dh_auto_install:
        # create placeholder in usr/share/perl5/PDL
        echo > $(CURDIR)/debian/pdl/usr/share/perl5/PDL/.placeholder
 
-       # set perl vendorarch directory dynamically
-       for f in debian/pdl.lintian-overrides debian/pdl.install \
-               debian/pdl.links debian/pdl.postinst \
-               debian/pdl.triggers ; do \
-               sed -e 's,@vendorarch@,$(vendorarch),g' $$f.in > $$f ; \
-       done
-
 override_dh_shlibdeps:
        dh_shlibdeps -X OpenGLQ.so
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/pdl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to