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

sebastic pushed a commit to branch master
in repository liblas.

commit 556948fe043222c8235b1982e727fd009dc6445d
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Thu Apr 23 21:31:35 2015 +0200

    Set the date embedded in man pages to the build date for reproducible 
builds.
---
 debian/changelog | 2 ++
 debian/rules     | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 9a263d0..ad50247 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ liblas (1.8.0-2~exp2) UNRELEASED; urgency=medium
 
   * Update symbols for: arm64, armel, armhf, hurd-i386, i386, kfreebsd-i386,
     mips, mipsel, powerpc, ppc64el & s390x.
+  * Set the date embedded in man pages to the build date for
+    reproducible builds.
 
  -- Bas Couwenberg <sebas...@debian.org>  Sun, 08 Feb 2015 16:18:48 +0100
 
diff --git a/debian/rules b/debian/rules
index 0696dc5..e3813e0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: 
\(.*\)-.*/\1/p' | sed -e 's/~.*//; s/^[0-9]://')
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C 
date -u "+%d %B %Y" -f -)
 
 MANPAGES:=$(wildcard debian/man/*.*.xml)
 
@@ -28,7 +29,7 @@ override_dh_auto_configure-indep:
 override_dh_auto_build-arch:
        # 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/liblas.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to