tod222 has asked for the wisdom of the Perl Monks concerning the following question:

Monks,

Being totally new to packaging Module::Install sounded good. My package has an executable, but I don't see how to set EXE_FILES (or other ExtUtils::MakeMaker attributes) using Module::Install.

Without giving up and just using ExtUtils::MakeMaker, how can I indicate to Module::Install that there are exe files?

Thanks.

  • Comment on Module::Install: How do I set EXE_FILES?

Replies are listed 'Best First'.
Re: Module::Install: How do I set EXE_FILES?
by almut (Canon) on Jul 28, 2008 at 19:07 UTC
    how can I indicate to Module::Install that there are exe files?

    Maybe install_script ... ?

    At least, this seems to be mapped to EXE_FILES internally:

    sub install_script { my $self = shift; my $args = $self->makemaker_args; my $exe = $args->{EXE_FILES} ||= []; foreach ( @_ ) { if ( -f $_ ) { push @$exe, $_; } elsif ( -d 'script' and -f "script/$_" ) { push @$exe, "script/$_"; } else { die("Cannot find script '$_'"); } } }
      Yes, thanks, install_script does it, I just noticed that.