K
Klaus
In my module File::Vctools http://search.cpan.org/~keichner/File-Vctools-0.06/
I have a couple of *.pl files that live in the /bin subdirectory of
the archive.
Here is the Build.PL that installs the module (using Module::Build as
the installer)
**************************************
use strict;
use warnings;
use 5.010;
use Module::Build;
unless ($^O eq 'MSWin32' or $^O eq 'linux') {
die "Error-0010: File::Vctools can only run on \$^O = 'MSWin32' or
'linux', but found \$^O = '$^O'";
}
Module::Build->new(
module_name => 'File::Vctools',
license => 'perl',
requires => {
'XML::Reader' => 0.37,
'Algorithm:iff' => 1.19_02,
'File::Slurp' => 9999.12,
},
dist_abstract => 'Compare different versions of text files and
identify changes',
)->create_build_script;
**************************************
Everything works fine...
....except for the Makefile.PL that I want to offer for those who don't
want to (or can't)
install using Module::Build, so that they can install using
ExtUtils::MakeMaker instead.
The problem is that Makefile.PL / ExtUtils::MakeMaker refuses to pick
up the *.pl files located in /bin.
Is there an option that I can put into Makefile.PL so that the *.pl
files in /bin are
picked up by Makefile.PL ?
Anyway, here is the Makefile.PL (that does not pick up the *.pl files
in /bin)
**************************************
use 5.010;
use ExtUtils::MakeMaker;
unless ($^O eq 'MSWin32' or $^O eq 'linux') {
die "Error-0010: File::Vctools can only run on \$^O = 'MSWin32' or
'linux', but found \$^O = '$^O'";
}
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'File::Vctools',
VERSION_FROM => 'lib/File/Vctools.pm', # finds $VERSION
PREREQ_PM => {
'XML::Reader' => 0.37,
'Algorithm:iff' => 1.19_02,
'File::Slurp' => 9999.12,
}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/File/Vctools.pm', # retrieve abstract
from module
AUTHOR => 'Klaus Eichner <[email protected]>') : ()),
);
**************************************
I have a couple of *.pl files that live in the /bin subdirectory of
the archive.
Here is the Build.PL that installs the module (using Module::Build as
the installer)
**************************************
use strict;
use warnings;
use 5.010;
use Module::Build;
unless ($^O eq 'MSWin32' or $^O eq 'linux') {
die "Error-0010: File::Vctools can only run on \$^O = 'MSWin32' or
'linux', but found \$^O = '$^O'";
}
Module::Build->new(
module_name => 'File::Vctools',
license => 'perl',
requires => {
'XML::Reader' => 0.37,
'Algorithm:iff' => 1.19_02,
'File::Slurp' => 9999.12,
},
dist_abstract => 'Compare different versions of text files and
identify changes',
)->create_build_script;
**************************************
Everything works fine...
....except for the Makefile.PL that I want to offer for those who don't
want to (or can't)
install using Module::Build, so that they can install using
ExtUtils::MakeMaker instead.
The problem is that Makefile.PL / ExtUtils::MakeMaker refuses to pick
up the *.pl files located in /bin.
Is there an option that I can put into Makefile.PL so that the *.pl
files in /bin are
picked up by Makefile.PL ?
Anyway, here is the Makefile.PL (that does not pick up the *.pl files
in /bin)
**************************************
use 5.010;
use ExtUtils::MakeMaker;
unless ($^O eq 'MSWin32' or $^O eq 'linux') {
die "Error-0010: File::Vctools can only run on \$^O = 'MSWin32' or
'linux', but found \$^O = '$^O'";
}
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'File::Vctools',
VERSION_FROM => 'lib/File/Vctools.pm', # finds $VERSION
PREREQ_PM => {
'XML::Reader' => 0.37,
'Algorithm:iff' => 1.19_02,
'File::Slurp' => 9999.12,
}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/File/Vctools.pm', # retrieve abstract
from module
AUTHOR => 'Klaus Eichner <[email protected]>') : ()),
);
**************************************