in reply to Re: Add bash file to a dist package
in thread Add bash file to a dist package
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:
In this file I have to add the statement: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();
also if the source and destination of the sh files are the same.sh_files => { 'sh/jump.sh' => 'sh/jump.sh' },
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Add bash file to a dist package
by lima1 (Curate) on Aug 17, 2010 at 14:45 UTC | |
by earlati (Acolyte) on Aug 17, 2010 at 22:09 UTC |
In Section
Seekers of Perl Wisdom