Remove Pandoc version from manpages
This is to allow needless deltas between builds with different Pandoc
versions, to aid with reproducible builds efforts.
@@ -46,7 +46,7 @@ EOF
my $man_file = "$man_dir/$name.$section";
system( qw( pandoc -s -t man ), $tempfile, '-o', $man_file );
- _fix_indentation($man_file);
+ _pandoc_postprocess($man_file);
}
sub _make_lib_man_links {
@@ -62,12 +62,13 @@ sub _make_lib_man_links {
# AFAICT there's no way to control the indentation depth for code blocks with
# Pandoc.
-sub _fix_indentation {
+sub _pandoc_postprocess {
my $file = shift;
edit_file(
sub {
s/^\.IP\n\.nf/.IP "" 4\n.nf/gm;
+ s/(Automatically generated by Pandoc)(.+)$/$1/m;
},
$file
);
