Thanks, I follow your hints and it seems to work.
Just one think is not clear to me again.
I used a Build.PL file like this:
use strict;
use warnings;
use Module::Build;
my $builder = Module::Build->new(
module_name => 'Jump',
license => 'perl',
dist_author => q{Enzo Arlati <enzo.arlati@libero.it>},
dist_version_from => 'lib/Jump.pm',
build_requires => {
'Test::More' => 0,
},
sh_files => { 'sh/jump.sh' => 'sh/jump.sh' },
add_to_cleanup => [ 'Jump-*' ],
create_makefile_pl => 'traditional',
);
$builder->install_path( 'sh' => '/etc/profile.d/' );
$builder->add_build_element( 'sh' );
$builder->create_build_script();
In this file I have to add the statement:
sh_files => { 'sh/jump.sh' => 'sh/jump.sh' },
also if the source and destination of the sh files are the same.
If I comment this line the jump.sh file are not processed.
Is this correct and there are a more polite way to tell the program to include the file *.sh ?
Regards, Enzo
|