[libepsilon] 03/05: Set the date embedded in man pages to the build date for reproducible builds.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Thu Apr 23 19:27:24 UTC 2015


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

sebastic pushed a commit to branch master
in repository libepsilon.

commit e1f54b3c1ffecef5940cba1c794996056089d46a
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Apr 23 21:00:57 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 9290bdf..a0802fb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ libepsilon (0.9.2-3~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 <sebastic at debian.org>  Thu, 12 Feb 2015 23:24:41 +0100
 
diff --git a/debian/rules b/debian/rules
index 876c83a..2bee23b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
 # Uncomment this to turn on verbose mode.
 #export 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)
 
 %:
@@ -15,7 +17,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/libepsilon.git



More information about the Pkg-grass-devel mailing list