Properly set version and release date in man pages for rem2html and rem2pdf

This commit is contained in:
Dianne Skoll
2022-09-24 09:50:15 -04:00
parent ea7aafaf5e
commit 0ad4ea26eb
2 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,15 @@
use ExtUtils::MakeMaker;
{
# Override pod2man options
package MY;
sub manifypods {
my ($self,%attribs) = @_;
my $result = $self->SUPER::manifypods(%attribs);
$result =~ s/^(POD2MAN_EXE\s*=\s*)(.+)$/$1$2 --center 'VERSION @VERSION@' --date '@RELEASE_DATE@'/m;
return $result;
}
}
WriteMakefile(
NAME => 'Remind::PDF',
AUTHOR => q{Dianne Skoll <dianne@skoll.ca>},