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

sebastic pushed a commit to branch master
in repository mkgmap-splitter.

commit 1fd07a23666e0d250cec761159f19b9e8295bd4e
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Thu Apr 23 22:35:28 2015 +0200

    Set the date embedded in man pages to the build date for reproducible 
builds.
---
 debian/changelog | 2 ++
 debian/rules     | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 4a52f52..c302017 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ mkgmap-splitter (0.0.0+svn421-1~exp2) UNRELEASED; urgency=medium
 
   * Update my email to use @debian.org address.
   * Override dh_clean to remove generated man pages.
+  * Set the date embedded in man pages to the build date for
+    reproducible builds.
 
  -- Bas Couwenberg <sebas...@debian.org>  Thu, 12 Feb 2015 23:35:09 +0100
 
diff --git a/debian/rules b/debian/rules
index 9837992..1b32a6e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,8 @@
 
 JAVA_HOME=/usr/lib/jvm/default-java
 
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C 
date -u "+%d %B %Y" -f -)
+
 MANPAGES:=$(wildcard debian/man/*.*.xml)
 
 %:
@@ -13,7 +15,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/mkgmap-splitter.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