Skip to content

Instantly share code, notes, and snippets.

@sshaw
Created March 27, 2011 08:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sshaw/889041 to your computer and use it in GitHub Desktop.
Save sshaw/889041 to your computer and use it in GitHub Desktop.
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};
return<<END_MAKE;
README.pod: $self->{VERSION_FROM}
\@perldoc -uT $self->{VERSION_FROM} > README.pod
END_MAKE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment