develooper Front page | perl.module.build | Postings from June 2010

Re: Adding script_files during... install

Thread Previous | Thread Next
From:
David Golden
Date:
June 13, 2010 16:54
Subject:
Re: Adding script_files during... install
Message ID:
AANLkTikC4y0xy3oqyb5HRHyCO0tobFZ4M-mB8SbP9JXD@mail.gmail.com
2010/6/13 Alberto Simões <albie@alfarrabio.di.uminho.pt>:
> For windows, I need to create the .bat files, and I hope Module::Build
> does that automatically for script files.

It happens in make_executable which is called by process_script_files,
which is ultimately called by ACTION_code (I think).

If you run "Build --debug" on a recent M::B you should see a trace of
the actions called.

> So, my question is:
>  - can I add script_files during the install action?

I don't see why not -- but you'd need to call $self->depends('code')
to get them built.  Experimentation is necessary -- no guarantees it
will work.  :-)

>  - how can I set them? Not sure if I should use the scripts() method
> that seems to be deprecated.

You should be able to call $self->script_files(\%files), I think.
(You might want to retrieve the old hash and add to it first.)  I
don't know why it's a hash. The values are ignored, I believe.

David

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About