[qlandkartegt] 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 21:33:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository qlandkartegt.
commit 504a16c49e647c2ec55da638b5d4e9c66c9f2b25
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Thu Apr 23 23:31: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 a1d19f1..8a100b6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+qlandkartegt (1.8.1+ds-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 23:31:25 +0200
+
qlandkartegt (1.8.1+ds-1~exp1) experimental; urgency=medium
* New upstream release.
diff --git a/debian/rules b/debian/rules
index de2473b..cd304ad 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
+
MANPAGES := $(wildcard debian/man/*.*.xml)
# one ring to rule them all ...
@@ -16,7 +18,7 @@ override_dh_auto_configure:
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-grass/qlandkartegt.git
More information about the Pkg-grass-devel
mailing list