public
Last active

Makefile.PL postamble() - Create README.pod for Perl packages uploaded to GitHub

  • Download Gist
Makefile.PL
Perl
1 2 3 4 5 6 7 8 9 10 11
# Create README.pod for a repo's GitHub page. Unlike CPAN, GitHub won't
# display the module's POD, it looks for a README.*
sub MY::postamble
{
my $self = shift;
return if -r 'README' or ! -r $self->{VERSION_FROM};
return<<END_MAKE;
README.pod: $self->{VERSION_FROM}
\@perldoc -uT $self->{VERSION_FROM} > README.pod
END_MAKE
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.