Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Building a CPAN distribution having a script with Dist::Milla

by unlinker (Monk)
on Jun 08, 2013 at 07:53 UTC ( #1037809=note: print w/ replies, xml ) Need Help??


in reply to Re: Building a CPAN distribution having a script with Dist::Milla
in thread Building a CPAN distribution having a script with Dist::Milla

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


Comment on Re^2: Building a CPAN distribution having a script with Dist::Milla
Re^3: Building a CPAN distribution having a script with Dist::Milla
by Anonymous Monk on Jun 08, 2013 at 09:41 UTC

    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?

      Yes it does, completely and precisely. You have referred to the minilla docs, while my question pertained to Dist::Milla. But both are related and I guess both install whatever is in script/ to installsitescript. Thank you for the response.

        Yes it does, completely and precisely. You have referred to the minilla docs, while my question pertained to Dist::Milla. But both are related and I guess both install whatever is in script/ to installsitescript. Thank you for the response.

        :) good, for completeness :) http://search.cpan.org/perldoc/Dist::Milla#CONVENTIONS Your executable file is in script directory, if any

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-22 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (117 votes), past polls