Dist::Z...romBuild(3)
π Dist::Zilla::Plugin::CopyFilesFromBuild π
okay so bestie, welcome to the user-contributed Perl documentation for Dist::Zilla::Plugin::CopyFilesFromBuild, which is a whole plugin that copies (or moves!) specific files after building, for SCM inclusion and stuff like that. she's niche, she's useful, she's lowkey iconic. let's get into it π«Ά
β¨ VERSION β¨
this is version 0.170880 π
π NAME π
Dist::Zilla::Plugin::CopyFilesFromBuild β copy (or move) specific files after building (for SCM inclusion, etc.)
π¦ SYNOPSIS π¦
so in your dist.ini you literally just do this:
[CopyFilesFromBuild]
copy = README
move = README.pod
copy = Makefile.PL
that's it. that's the whole vibe. β¨
πΈ DESCRIPTION πΈ
this plugin will automatically copy the files you specify in dist.ini from the build directory into the distribution directory. why? so you can commit them to version control, bestie. that's the entire point. π«Ά
but okay, plot twist: if you want to put a build-generated file in version control but you don't want it to remain in the build dir, use move instead of copy. and here's the important part β when you use move, the MANIFEST file will be updated if it exists, and the moved files will be pruned from their former location. no cap. π
π RATIONALE π
okay storytime π this plugin is based on CopyReadmeFromBuild. the author wrote it because that plugin was copying the wrong README file (README instead of README.mkdn or README.pod), and it could not be configured to do otherwise. so he wrote his own module that copies exactly the files he specifies. main character energy tbh.
and the move functionality? added because he wanted to generate a README.pod file for Github, but MakeMaker wanted to also install the README.pod file as part of the distribution. so he made it possible to take a file generated during the build and move it out of the build directory, so that it would not be included in the distribution. slay. π
π BUGS AND LIMITATIONS π
please report any bugs or feature requests to rct+perlbug@thompsonclan.org π
yes that's a real email, go tell him if something's broken. he wants to know, fr fr.
π SEE ALSO π
Dist::Zilla::Plugin::CopyReadmeFromBuildβ the basis for this module β¨
π§ INSTALLATION π§
see perlmodinstall for information and options on installing Perl modules. that's the plug-and-play guide, iykyk π
β AUTHOR β
Ryan C. Thompson <rct@thompsonclan.org> β give him his flowers π
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2010 by Ryan C. Thompson.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, just keep the terms. periodt. π
π₯ DISCLAIMER OF WARRANTY π₯
okay bestie, this part is in ALL CAPS because that's the legal vibe and we do not mess with the legal vibe. here it is, verbatim, no edits, no cuts:
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
so yeah. no warranty. use it responsibly. π
and that's the page, bestie π¦ this was perl v5.42.0, dated 2025-07-25, from the Dist::Z...romBuild(3) manual page (yes the title got chopped, that's just how the formatter does it, don't come for her). mwah π
π¦ where this page comes from
- fedora 43: perl-Dist-Zilla-Plugin-CopyFilesFromBuild 0.170880-26.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms