[prepair] 01/04: 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:28:55 UTC 2015


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

sebastic pushed a commit to branch master
in repository prepair.

commit 89ab5368d73114c33b2214ba71f52599e108bfd4
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Apr 23 23:12:37 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 5b381ca..9325d01 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+prepair (0.7-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 23:12:24 +0200
+
 prepair (0.7-1) unstable; urgency=medium
 
   * Initial release (Closes: #750725)
diff --git a/debian/rules b/debian/rules
index 942c04c..e52514d 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/prepair.git



More information about the Pkg-grass-devel mailing list