[lintian] 01/01: private/generate-html-docs: Avoid some unreproducible timestamps
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 5147d9741ab23b8b78e1983f5dfb94891ee5eb71
Author: Niels Thykier <niels@thykier.net>
Date: Mon Jun 29 20:04:21 2015 +0200
private/generate-html-docs: Avoid some unreproducible timestamps
Signed-off-by: Niels Thykier <niels@thykier.net>
---
private/generate-html-docs | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/private/generate-html-docs b/private/generate-html-docs
index 8f9ca74..6bf13e2 100755
--- a/private/generate-html-docs
+++ b/private/generate-html-docs
@@ -5,7 +5,6 @@ use warnings;
use autodie;
use Pod::Simple::HTMLBatch;
-use Pod::Simple::HTML;
my (@input, $output, $version);
@@ -28,8 +27,10 @@ $Pod::Simple::HTML::Content_decl
= q{<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">};
my $convert = Pod::Simple::HTMLBatch->new;
-$convert->html_render_class('Pod::Simple::HTML');
+$convert->html_render_class('My::Pod::Simple::HTML');
$convert->contents_page_start(header());
+# No footer - it contains a "current time" and is thus unreproducible
+$convert->contents_page_end(q{});
$convert->batch_convert(\@input, $output);
print "HTML version available at $output/index.html\n";
@@ -76,3 +77,14 @@ sub guess_version {
}
return $version;
}
+
+package My::Pod::Simple::HTML;
+
+use strict;
+use warnings;
+use parent qw(Pod::Simple::HTML);
+
+# Skip the version tag (incl. a date) to get reproducible output
+sub version_tag_comment {
+ return q{};
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: