MakeMaker and data files
am 22.03.2006 14:02:40 von alexxx.magni
hi people,
I'm beginning to use MakeMaker and have some problems with it: I need
to install some auxiliary data files, and I can't figure out how to
tell that to MakeMaker.
e.g. I'd like that my final install would include some data files under
/etc/projectname/
so: 1) where do I put them originally? (in lib/etc for example?)
and 2) how do I tell MakeMaker to install them in /etc/projactname ?
Any ideas?
thank you1
Alessandro Magni
Re: MakeMaker and data files
am 22.03.2006 14:22:54 von alexxx.magni
I correct myself on a point: I just checked that if I put my datafiles
in a directory like projectname/lib/datafiles/... they are all
installed for good, in my computer under
/usr/lib/perl5/site_perl/5.8.6/projectname/datafiles/...
This compromise I could accept, but how do I access that install
directory name from my program?
thanks!
Alessandro
Re: MakeMaker and data files
am 23.03.2006 00:28:17 von Sisyphus
wrote in message
news:1143033774.220502.203950@i40g2000cwc.googlegroups.com.. .
> I correct myself on a point: I just checked that if I put my datafiles
> in a directory like projectname/lib/datafiles/... they are all
> installed for good, in my computer under
> /usr/lib/perl5/site_perl/5.8.6/projectname/datafiles/...
>
> This compromise I could accept, but how do I access that install
> directory name from my program?
>
The prefix to that directory will be contained in one of the %Config keys -
I think it's $Config{sitelib}. That being the case, so long as you 'use
Config;' , you can access the directory as
$Config{sitelib}/projectname/datafiles/ .
Cheers,
Rob