From a4528552b404fd19a94e70a0c362b84e7f5d0291 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 21 Jun 2016 14:43:51 +0900 Subject: build manpage reproducibly --- debian/changelog | 1 + debian/rules | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 23505e4..5df9b40 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ stylish-haskell (0.5.17.0-1) UNRELEASED; urgency=medium - Dependency change: cmdargs -> optparse-applicative * Drop 0002-move-CHANGELOG-entry-from-README.patch Merged upstream. + * Pass changelog timestamp to ronn so manpage builds reproducibly. -- Sean Whitton Tue, 21 Jun 2016 14:17:51 +0900 diff --git a/debian/rules b/debian/rules index 10e1c7d..1a6cb2d 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,11 @@ # these rules originally written by Joey Hess for hothasktags package +# so that ronn builds the manual page reproducibly, get date from +# changelog and print it in the format ronn expects +DEB_CHANGELOG_STAMP_DATE = \ + $(shell date --date="$$(dpkg-parsechangelog -SDate)" +%Y-%m-%d) + %: dh $@ @@ -12,7 +17,9 @@ override_dh_auto_configure: --enable-tests override_dh_auto_build: - ronn debian/stylish-haskell.1 + ronn --date=$(DEB_CHANGELOG_STAMP_DATE) \ + < debian/stylish-haskell.1.ronn \ + > debian/stylish-haskell.1 ./Setup build override_dh_auto_clean: -- cgit v1.2.3