Hi,
sorry for asking this here - I could not find a better place yet. I am trying to use Module::Bulid to distribute a script. So far I found a way to test and install at least the pl-script but I got stuck with copying the cnfiguration-file to the home-dir of the installing user. Also the pl-script is copied in some bin-dir under .../cpan|ActivePerl and not /usr/local/bin.

My Build.PL so long:

use strict;
use warnings;
use Module::Build;

my $builder = Module::Build->new(
    dist_name           => 'GpxManager',
    license             => 'gpl',
    dist_author         => q{Ingo Lantschner <perl [at] lantschner.name>},
    dist_version_from   => 'bin/gpxman.pl',
    configure_requires  => {
    },
    build_requires => {
        'Test::More'                => 0,
        'FindBin'                   => 1.49,
    },
    requires => {
        'perl'              => '5.8.0',
    },
    add_to_cleanup      => [ 'GpxManager-*' ],
    cfg_file            =>
install_base => '~/Perl/ta', # Testarea - may be removed later on
    install_path => {
                          script    => '/usr/local/bin',
conf => '~', # anything from conf to ~
                          bindoc    => '/usr/local/man',    # manual-pages
#binhtml => /...? # html-dokumentatoin
    },
    create_makefile_pl => 'traditional',
);

$builder->add_build_element('conf');
$builder->create_build_script();


Can someone please point me into the right direction?

Thanks a lot, Ingo



Reply via email to