I have a module I've released to for CPAN:
VCS::Lite::Repository. One of the deliverables is a script called VCShell.pl, a command line shell that gives access to the module code (much like dbish does for DBI).
I put it in the bin directory, as this is what other CPAN modules seem to be doing, but "make install" seems to leave the script where it is.
What I'd quite like to happen is for the script to get installed into Perl's site bin directory, altering the shebang line for the correct path to perl. On a Windows platform, I'd like it to run the file through pl2bat in the process.
I was under the impression that this is something that happens automatically.
- Is there something simple like an environment variable or a parameter that I'm missing? Have I got the path right, putting scripts into a directory called bin?
- Do I have to hand-graft something myself inside Makefile.PL?
- Do I have to abandon Makefile.PL in favour of Module::Build?
I'm feeling lazy and don't feel like crufting Makefile.PL. Someone must have addressed this before.
Any help would be appreciated
rinceWind
--
I'm Not Just Another Perl Hacker
Update: liz++ EXE_FILES is exactly what I was after. I hadn't chanced on the right keywords to supersearch.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.