[Pkg-javascript-commits] [node-decompress-zip] 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 22:02:46 UTC 2015


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

sebastic pushed a commit to branch master
in repository node-decompress-zip.

commit 145d0fc65b8e72ab94e644b066e6b88dffe9e1fd
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Apr 24 00:02:25 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 70af413..42bd909 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+node-decompress-zip (0.1.0-2) UNRELEASED; urgency=medium
+
+  * Set the date embedded in man pages to the changelog date for
+    reproducible builds.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 24 Apr 2015 00:02:24 +0200
+
 node-decompress-zip (0.1.0-1) unstable; urgency=low
 
   * Initial release (Closes: #779498)
diff --git a/debian/rules b/debian/rules
index 4a37179..e2274a8 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 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-javascript/node-decompress-zip.git



More information about the Pkg-javascript-commits mailing list