>>>>> On Sun, 10 Dec 2000 08:26:17 -0800, "Richard Anderson" <[EMAIL PROTECTED]>
>said:
> I am preparing a module for CPAN release. There is a subdirectory tree
> that should be copied recursively to /usr/local/etc when "make install"
> is typed. I assume that I should write a perl script that does the
> copy, but I don't see anything in the ExtUtils::MakeMaker man page that
> lets me indicate that this script should be run during "make install".
> The PL_FILES attribute looks promising, but I don't think this does
> what I need.
PL_FILES isn't it. AFAIR, you need to define a subroutine that adds
the necessary lines to the Makefile. Something like
sub MY::postamble {
return qq{
install::
$(CP) foo /usr/local/etc/http-webtest/
$(CP) bar /usr/local/etc/http-webtest/
};
}
Please consider using File::Spec instead of hardcoded slashes as
directory separators and be warned that the user really needs a chance
to decide if he considers /usr/local/etc/ being the right place. mysql
for example puts its databases there, nessus puts its configuration
there, and when I run
mysqlshow nessus
I do get a very useless answer. Annoys me.
--
andreas