[DRE-commits] [cucumber] 03/07: reproducibility: use last changelog date to build the manpage

Cédric Boutillier boutil at moszumanska.debian.org
Sat Jun 20 15:40:11 UTC 2015


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

boutil pushed a commit to branch master
in repository cucumber.

commit 8b5d35972addb9263ff1065ed923fd0cdf210c0f
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Jun 20 16:48:36 2015 +0200

    reproducibility: use last changelog date to build the manpage
---
 debian/rules | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index a5cb577..577ac2e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,9 @@
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
+last_change = $(shell dpkg-parsechangelog -S Date)
+build_epoch = $(shell date -u +"%s" --date="$(last_change)")
+
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
@@ -20,7 +23,7 @@ override_dh_auto_install:
 	dh_auto_install
 	rm -r debian/cucumber/usr/lib/ruby/vendor_ruby/autotest
 	mkdir -p debian/cucumber/usr/share/man/man1
-	pod2man -n cucumber -r "cucumber $(package_version)" -c cucumber debian/cucumber.pod > debian/cucumber/usr/share/man/man1/cucumber.1
+	pod2man -n cucumber -r "cucumber $(package_version)" -c cucumber --date $(build_epoch) debian/cucumber.pod > debian/cucumber/usr/share/man/man1/cucumber.1
 
 override_dh_installchangelogs:
 	dh_installchangelogs History.md

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/cucumber.git



More information about the Pkg-ruby-extras-commits mailing list