|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
PAR target for Module::Buildby gaal (Parson) |
| on Mar 09, 2005 at 16:14 UTC ( [id://437941] : perlquestion . print w/replies, xml ) | Need Help?? |
|
gaal has asked for the wisdom of the Perl Monks concerning the following question:
I wanted to package up a module as a PAR dist, but couldn't figure out how to get either Build.PL or the PAR tools to include extra files from my par/ dir, and possibly my tests, into blib/ or the PAR::Dist target.
So I cooked up this hackaround. It may be useful for people, but I'm posting this as a SoPW and not a Snippet because somehow I feel I'm doing something wrong. Certainly, this only Works For MeTM because the module I'm packaging is pure Perl and doesn't need a blib/; YMMV and if you know the Right Thing to do here, please let me know. In any case, here it is. It just makes a PAR from everything in your MANIFEST, and names it DIST-VER.par. Usage: ./Build.PL && ./Build pardist In your Build.PL, instead of my $build = new Module::Builder Put this:
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||