Re: [Module::Build] How do I make a Build.PL to install a web app?
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <ml...@th...> - 2006-04-14 10:12:10
|
Stephen Adkins wrote:
> Hi,
>
> I want to have a Build.PL which installs more than just scripts and modules.
> I have a web application, and I want to install "cgi-bin" programs,
> lots of files
> under "htdocs" (html, css, js, jpg, png, gif), and various files under "share".
>
> How can I do this? (See examples below.)
> Is the "install_extra_dirs" option a good enhancement? (see below)
>
> I have a way to do this (barely) with MakeMaker, and if I can't figure out how
> to do this with Module::Build, I will have to go back to Makefile.PL in some
> of my distributions.
I understand and agree with the need, but I'm not sure this is the best
approach.
We have one approach already that consists of feeding arguments to the
constructor to indicate extra files to copy. This can be extended by
subclassing and adding appropriate methods (eg find_${type}_files and
process_${type}_files).
If we're going to extend/enhance this functionality, I think we need to
take a different approach than feeding yet more arguments to the
constructor since it doesn't really accomplish any more than we can do
now. In particular it's not flexible enough to specify file to file and
directory to directory copies, nor does it allow custom attributes/file
modes to be assigned.
As we've talked about before, I'd like to add a method to allow easy,
one call, way to set up custom install elements. But I'm holding off in
the interest of getting 0.28 out.
This is a very high priority item with all of the questions we get about
it, but we really need to get 0.28 out. I'll try to get the docs updated
a bit to help authors understand the current methods better for the 0.28
release.
Regards,
Randy.
|