On Saturday 28 February 2009 03:52:50 Michael G Schwern wrote:
> Shlomi Fish wrote:
> > $builder->add_build_element('extradata');
> > $builder->install_path->{'extradata'} = $builder->prefix() .
> > "/data/modules/XML-Grammar-Products-Syndication/data";
>
> Don't use prefix(), it's there for MakeMaker compatibility. Use
> install_base().
So should I do:
{{{
$builder->install_path->{'extra_data'} =
File::Spec->catdir(
$builder->install_base(),
qw(data modules XML-Grammar-ProductsSyndication data)
);
}}}
?
Because Eric didn't mention the install_path mangling in his response and
placed everything under "lib/" (where it seems to be installed), so I assumed
it was no longer needed.
install_base is mentioned here:
http://search.cpan.org/~ewilhelm/Module-Build-0.32/lib/Module/Build/API.pod
But is not explained.
>
> And you're going to want to use File::Spec to concatenate those paths else
> you'll wind up with C:\some\prefix\/data/modules/...
Yes, I understand.
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
First stop for Perl beginners - http://perl-begin.org/
<mauke> I'm not interested in what you're doing; what are you trying to
achieve?
<PerlJam> mauke: I'm trying to achieve world peace and this regex is
the last thing standing in my way! ;)