[pprepair] 01/08: Set the date embedded in man pages to the changelog date for reproducible builds.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Thu Apr 23 21:07:43 UTC 2015


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

sebastic pushed a commit to branch master
in repository pprepair.

commit 0bc628a78338685f60d74b02a6a10f01b02e2448
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Apr 23 22:49:46 2015 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 5cc5bb6..6c57e6c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pprepair (0.0~20140611-c70373b-2) UNRELEASED; urgency=medium
+
+  * Set the date embedded in man pages to the changelog date for
+    reproducible builds.
+
+ -- Bas Couwenberg <sebastic at xs4all.nl>  Thu, 23 Apr 2015 22:49:45 +0200
+
 pprepair (0.0~20140611-c70373b-1) unstable; urgency=medium
 
   * Initial release (Closes: #770649)
diff --git a/debian/rules b/debian/rules
index 0bdca0c..6a28d20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,8 @@
 
 # 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)
 
 %:
@@ -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/pprepair.git



More information about the Pkg-grass-devel mailing list