Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Building a CPAN distribution having a script with Dist::Milla

by unlinker (Monk)
on Jun 07, 2013 at 20:35 UTC ( #1037751=perlquestion: print w/ replies, xml ) Need Help??
unlinker has asked for the wisdom of the Perl Monks concerning the following question:

I have recently started using Dist::Milla to mint my distributions. I now have to make a distribution that also contains a script besides the usual modules. How can Dist::Milla be used in such a situation? How can I control the location of that script when the end-user installs this module? Does Dist::Milla provide any boilerplate that will make minting distributions with scripts easier and faster?

Comment on Building a CPAN distribution having a script with Dist::Milla
Re: Building a CPAN distribution having a script with Dist::Milla
by Anonymous Monk on Jun 08, 2013 at 01:40 UTC

    How can I control the location of that script when the end-user installs this module?

    What do you mean by this?

      I want to distribute a script with my module. When someone downloads my distribution and installs with (say) cpanm, this script should get installed in a location that is listed in the user's $PATH. How can I achieve this

        I want to distribute a script with my module. When someone downloads my distribution and installs with (say) cpanm, this script should get installed in a location that is listed in the user's $PATH. How can I achieve this

        See http://search.cpan.org/perldoc/Minilla#script_files

        script_files get installed into installsitescript

        $ perl -V:installsitescript installsitescript='C:\citrusperl\site\bin';

        You should already have installsitescript in your $PATH

        So, just drop the file to get installed into a scripts or a bin directory, and after minilla is done packaging/publishing... and you try to install, it should go into installsitescript, which is the default and expected thing

        Does that answer your question?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1037751]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-08-20 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (113 votes), past polls