in reply to Re^2: 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
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Building a CPAN distribution having a script with Dist::Milla
by unlinker (Monk) on Jun 08, 2013 at 12:22 UTC | |
by Anonymous Monk on Jun 08, 2013 at 12:59 UTC |