[Pkg-javascript-commits] [acorn] 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:01:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository acorn.
commit 499a7a30c6ab8ea35df35fd5da1b341ccb1bd6fb
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Apr 24 00:01:26 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 d2ae564..9c6467b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+acorn (0.11.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:01:26 +0200
+
acorn (0.11.0-1) unstable; urgency=low
* Initial release (Closes: #779300)
diff --git a/debian/rules b/debian/rules
index 57836dd..29328f7 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/acorn.git
More information about the Pkg-javascript-commits
mailing list