in reply to How do you package your programs?
If you use ExtUtils::MakeMaker, you can specify a list of EXE_FILES in your Makefile.PL; they will be installed in the appropriate bin/ directory somewhere, depending on the configuration.
For instance, in my script for OpenInteract, I have:
my %opts = ( 'NAME' => 'OpenInteract', 'VERSION_FROM' => 'OpenInteract.pm', 'EXE_FILES' => [ qw( script/oi_manage ) ], ... ); WriteMakefile( %opts );
This will copy the file from script/oi_manage into (on my machine) /usr/bin. You can change this (with caution) by modifying your install's Config.pm keys 'installbin', and/or 'installsitebin'.
And there's nothing wrong with adding your library to @INC -- that's what it's for!
Chris
M-x auto-bs-mode
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you package your programs?
by Abigail-II (Bishop) on Aug 28, 2002 at 12:08 UTC | |
by crenz (Priest) on Aug 28, 2002 at 12:50 UTC | |
|
Re: Re: How do you package your programs?
by jepri (Parson) on Aug 28, 2002 at 11:51 UTC |