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

sebastic pushed a commit to branch master
in repository librasterlite2.

commit e343383c042d918fbaeb3860077e76e239ef3def
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Thu Apr 23 21:34:16 2015 +0200

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

diff --git a/debian/changelog b/debian/changelog
index f13e6c8..73749ed 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ librasterlite2 (1.0.0~rc0-1~exp2) UNRELEASED; urgency=medium
   * Add upstream metadata.
   * 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>  Sat, 29 Nov 2014 00:09:35 +0100
 
diff --git a/debian/rules b/debian/rules
index 87958dc..8b60819 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,7 @@
 export VERBOSE=1
 
 UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: 
\(.*\)-.*/\1/p' | sed -e 's/~.*//')
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C 
date -u "+%d %B %Y" -f -)
 
 MANPAGES := $(wildcard debian/man/*.*.xml)
 
@@ -20,7 +21,7 @@ override_dh_clean:
 override_dh_auto_build:
        # Create man page 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/librasterlite2.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