Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Directory layout recommendations for a CPAN namespace

by maspalio (Scribe)
on Oct 16, 2006 at 06:56 UTC ( [id://578442]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Directory layout recommendations for a CPAN namespace
in thread Directory layout recommendations for a CPAN namespace

Hi,

I usually put my scripts in a tools/ (silly of me, this seems like it's not that standard ;) directory then declare it in ad'hoc key of Makefile.PL:
EXE_FILES => [ map { "scripts/${_}.pl" } qw( foo bar baz ) ],
All these files will eventually be installed in $PREFIX/bin directory.

About tools to ./lib link, I did not find any other way than cheating. For example foo would have a shebang like:
#!/usr/local/bin/perl -IPerlMonks/lib
This actually works during test and does not impact deployed application.

Last, about t/*.t stuff, 'make test' automagically inserts blib-related directives but you will definitely have to use 'prove' like:
% prove --lib PerlMonks/lib
HTH.

Cheers,

Xavier

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-24 03:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found