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

mehdi pushed a commit to branch master
in repository ocaml-doc.

commit 09e6d1f3368e5d2a7fe612d351db9bcbd6dd3750
Author: Mehdi Dogguy <me...@debian.org>
Date:   Sat Jan 6 22:46:28 2018 +0100

    Replace call to dpkg-parsechangelog by use of /usr/share/dpkg/pkg-info.mk 
in d/rules
---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 0e0fa95..0acd9cb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,11 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 
-DOC_VERSION=$(shell dpkg-parsechangelog | sed -n "s/Version: 
\(.*\)-[^-]\+/\1/p")
+include  /usr/share/dpkg/pkg-info.mk
 
 override_dh_auto_build:
        for file in docs ocaml-doc.doc-base.ocaml; do \
-               sed "s/@VERSION@/$(DOC_VERSION)/g" debian/$${file}.in > 
debian/$${file}; \
+               sed "s/@VERSION@/$(DEB_VERSION_UPSTREAM)/g" debian/$${file}.in 
> debian/$${file}; \
        done
 
 override_dh_compress:

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/ocaml-doc.git

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

Reply via email to