Hi, Piotr.

That is a very complicated question because there is no standard way
for a perl distribution to know where share files are preferred by an
operating system.

I can suggest that you look at Module::Build instead.  The
Module::Build::Cookbook (
http://search.cpan.org/perldoc?Module::Build::Cookbook ) has these
entries:
    * Adding new file types to the build process
    * Adding new elements to the install process

You can adapt those recipes to put things in a share directory.

Many perl developers find it easier to put shared data under the perl
site directory instead and access it using File::ShareDir.

Module::Install is a wrapper around ExtUtils::MakeMaker and provides
the "install_share" command to install data for use with
File::ShareDir.  Module::Build also supports File::ShareDir with the
"share_dir" parameters.  Both are easier to work with than
ExtUtils::MakeMaker.

Good luck!

-- David



2010/7/9 Piotr Skólski <s...@wp.pl>:
> Hi.
>
> I do some administration tool. I would distribute it.
> Main target is NIXs. I read tons of doc/man/pods and i don't know:
>
> How install data ?
>
> I would have my data under:
>  Debian like:
>    /usr/share/$NAME/
>  RedHat like:
>    /usr/local/share/$NAME/
>
> Where search for answer ?
>
> ----------------------------------------------------
> Nowe kolekcje strojów kąpielowych. ZOBACZ!
>
>
>

Reply via email to