Making a distribution with a command line thingy in it
Shlomi Fish
shlomif at iglu.org.il
Tue Oct 19 04:28:18 PDT 2010
On Friday 15 October 2010 13:37:41 Jan Henning Thorsen wrote:
> If you're using Module::Install, you need to add
>
> install_script glob('bin/*');
>
> That will install every script found in the bin/ directory to the system's
> default binary location. Not sure where this is on windows, but in linux
> (ubuntu/debian/++) it's /usr/local/bin
>
> Example Makefile.PL:
>
> use inc::Module::Install;
>
> #----------------------------------------------------
> name q(My-Module);
> all_from q(lib/My/Module.pm);
>
> requires q(Moose) => 1.0;
> test_requires q(Test::More) => 0.9;
>
> bugtracker q(http://rt.cpan.org/NoAuth/Bugs.html?Dist=My-Module);
> homepage q(http://jhthorsen.github.com/my-module);
> repository q(git://github.com/jhthorsen/my-module.git);
>
> install_script q(bin/my-script);
> auto_install;
> WriteAll;
> #----------------------------------------------------
>
> Regards,
> batman
>
<holy-war>
> PS: ...and if you're not using Module::Install, you need to use it ;-)
>
No! You should be using Module-Build. It's Module-Build all the way down. M-B
forevar and evar! True Klingon warriors will tolerate nothing lesser.
</holy-war>
Hmmm....
And Top-Posting-- .
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
"Humanity" - Parody of Modern Life - http://shlom.in/humanity
<rindolf> She's a hot chick. But she smokes.
<go|dfish> She can smoke as long as she's smokin'.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
More information about the MiltonKeynes-pm
mailing list