Perl CPAN-style packaging without lib / *. Pm

I have a collection of Perl scripts and several XML data files on which they depend on which I would like to distribute. I currently have a shell script that copies bin / * and share / * to the target installation tree. This seems a bit awkward, so I would like to go with something like the standard Perl CPAN packaging method.

Does it make sense to bundle what I have in a CPAN-style package? I suspect there is nothing wrong with that, but every tutorial that I looked at believes lib / Blah.pm is an important file in any package - I don't even have a lib / directory, not to mention any .pm files .

Is there a standard solution for packing a collection of Perl scripts along with some data in the share / folder?

+3
source share
1 answer

Distributions do not care about modules. Most tools are configured to handle modules by default because this is a common case, but you can really distribute anything as long as you provide the logic to tell assembly files what to do with any files you provide.

ExtUtils :: Makemaker is difficult to use for this kind of thing, but Module :: Build (despite the word "Module") makes it a lot easier. However, you need to learn a little about the special Module :: Build classes so that you can override the default behavior that you don't need.

, scriptdist Dr. , . / , .

+6

Source: https://habr.com/ru/post/1629593/


All Articles