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

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Thu Apr 23 20:46:16 UTC 2015


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

sebastic pushed a commit to branch master
in repository pktools.

commit 3fc3679fdc905c95de3ba19f750bed4035c15efa
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Apr 23 22:45:48 2015 +0200

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

diff --git a/debian/changelog b/debian/changelog
index afb1e1b..4ce56a3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pktools (2.6.3-1~exp2) UNRELEASED; urgency=medium
+
+  * Set the date embedded in man pages to the changelog date for
+    reproducible builds.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Thu, 23 Apr 2015 22:44:16 +0200
+
 pktools (2.6.3-1~exp1) experimental; urgency=medium
 
   * New upstream release.
diff --git a/debian/rules b/debian/rules
index 4b07d01..4d6c216 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@
 #export DH_VERBOSE=1
 
 PKTOOLS_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/[~+].*//; s/^[0-9]://')
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
 
 ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
 	export DEB_CXXFLAGS_MAINT_APPEND := -I/usr/include/hdf5/serial
@@ -30,7 +31,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/pktools.git



More information about the Pkg-grass-devel mailing list