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

sebastic pushed a commit to branch master
in repository thuban.

commit 29759050d10fa955e2b8de37113744c3730dd177
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Thu Apr 23 23:50:37 2015 +0200

    Set the date embedded in man pages to the changelog date for reproducible 
builds.
---
 debian/changelog | 7 +++++++
 debian/rules     | 6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8962dee..ebe699d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+thuban (1.2.2-7) UNRELEASED; urgency=medium
+
+  * Set the date embedded in man pages to the changelog date for
+    reproducible builds.
+
+ -- Bas Couwenberg <sebas...@xs4all.nl>  Thu, 23 Apr 2015 23:50:36 +0200
+
 thuban (1.2.2-6) unstable; urgency=medium
 
   * Apply patch by Olly Betts to use wxWidgets 3.0 -
diff --git a/debian/rules b/debian/rules
index c0f2e9f..de92d3f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C 
date -u "+%d %B %Y" -f -)
+
 MANPAGES:=$(wildcard debian/man/*.*.xml)
 
 CFLAGS += -Wall -g
@@ -16,7 +18,7 @@ endif
        dh $@ --with python2
 
 override_dh_clean:
-       dh_clean
+       dh_clean debian/man/*.1
 
        python setup.py clean
 
@@ -27,7 +29,7 @@ override_dh_clean:
 override_dh_auto_build:
        # Create man pages from DocBook XML
        for x in $(MANPAGES) ; do \
-         docbook2x-man $$x ; \
+         docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
          mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
        done
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/thuban.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to