rmcgowan has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to create a module which will include a number of stand alone scripts that used the module files. My understanding from looking at the ExtUtils::MakeMaker POD, as well as some examples from CPAN, I should be able to do this by using this in Makefile.PL:
use 5.012001; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'MyModule', VERSION_FROM => 'lib/MyModule.pm', PREREQ_PM => {'WWW::Curl::Easy' => 4.15, 'JSON::XS' => 2.32, 'Term::ReadKey' => 2.30, 'String::Strip' => 1.02, 'Date::Parse' => 2.30, }, ABSTRACT_FROM => 'lib/MyModule.pm', AUTHOR => 'me <me@example.com>', EXE_FILES => [ 'script_name' ], );
But when I run 'make dist', the verbose output from 'tar' does not include 'script_name', and extracting the tar file content does not include it (just being sure ;).
Yet the examples I've looked at don't seem to be doing anything more than the single EXE_FILES line.
What am I missing? Many thanks in advance.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: building a module with executable scripts
by davido (Cardinal) on Dec 18, 2013 at 20:49 UTC | |
by rmcgowan (Sexton) on Dec 18, 2013 at 21:33 UTC | |
by davido (Cardinal) on Dec 18, 2013 at 21:36 UTC | |
Re: building a module with executable scripts
by taint (Chaplain) on Dec 19, 2013 at 01:36 UTC |