[librasterlite] 01/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 20:00:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository librasterlite.
commit 16b1d3c0aad3e25b72114afa8f15c5ba2afec3b4
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Thu Apr 23 21:39:34 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 fea125d..86fc668 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
librasterlite (1.1g-5) UNRELEASED; urgency=medium
* Add upstream metadata.
+ * Set the date embedded in man pages to the build date for
+ reproducible builds.
-- Bas Couwenberg <sebastic at xs4all.nl> Sat, 29 Nov 2014 00:08:23 +0100
diff --git a/debian/rules b/debian/rules
index 37c8796..a309ee6 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)
%:
@@ -18,7 +20,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-grass/librasterlite.git
More information about the Pkg-grass-devel
mailing list