Dist::Zilla::Plugin::CopyMakefilePLFromBuild - Copy Makefile.PL after building (for SCM inclusion, etc.)
version 0.0019
In your Dist::Zilla dist.ini:
dist.ini
[CopyMakefilePLFromBuild]
CopyMakefilePLFromBuild will automatically copy the Makefile.PL from the build directory into the distribution directory. This is so you can commit the Makefile.PL to version control. When building directly from GitHub (via cpanm, for example) you would need a Makefile.PL
Dist::Zilla will not like it if you already have a Makefile.PL, so you'll want to prune that file, an example of which is:
[GatherDir] ; gathers files - including Makefile.PL [PruneFiles] ; removes some files filenames = Makefile.PL [MakeMaker] ; generates your Makefile.PL for the build dir [CopyMakefilePLFromBuild] ; copies the generated Makefile.PL back
With the release of 0.0016, this plugin changed to performing the copy during the AfterRelease stage instead of the AfterBuild stage. To enable the old behavior, set the environment variable DZIL_CopyFromBuildAfterBuild to 1:
$ DZIL_CopyFromBuildAfterBuild=1 dzil build
Robert Krimen <robertkrimen@gmail.com>
This software is copyright (c) 2011 by Robert Krimen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::PluginBundle::ROKR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::PluginBundle::ROKR
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::PluginBundle::ROKR
For more information on module installation, please visit the detailed CPAN module installation guide.