Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Makefile.PL postamble() - Create README.pod for Perl packages uploaded to GitHub
# 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};
\@perldoc -uT $self->{VERSION_FROM} > README.pod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment