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
In reply to Re: How do you package your programs?
by lachoy
in thread How do you package your programs?
by jepri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |