> I'm building a distribution out of this, using ExtUtils::MakeMaker.
One usually establishes the requirements first, then picks the
appropriate build tool. When there is any customisation, EUMM loses out
in favour of M::B.

> I wouldn't want to require everyone who
> installs the module to also install the script.
my $build = Module::Build->new(…);
$build->script_files([keys %{$build->script_files}, glob 'examples/*'])
    if 'y' eq $build->prompt('Install the example scripts shipping in
this distribution? (y/n)', 'y');
$build->create_build_script;

I advise you to install by default. Think of the consequences. If the
distro installs the scripts and the user doesn't them, they are easily
deleted. Most of the time, though, they are not noticed and just take
up a tiny bit of disk space.

However, if they are not installed and the user wants them, he must run
the installation manually again, which is super-annoying. This takes
up time, which is a more precious resource. One bad example of picking
the wrong default is in libwww-perl, need to call Makefile.PL --aliases
to install the scripts that used to be installed in earlier versions
without doing anything special.





Attachment: signature.asc
Description: PGP signature

Reply via email to