This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Cwd/File::Spec version bump to 3.40
[perl5.git] / dist / Module-CoreList / Makefile.PL
CommitLineData
3a02dfe7
RGS
1use ExtUtils::MakeMaker;
2
0338a13c
CBW
3push @extra, 'INSTALLDIRS' => 'perl' if $] >= 5.008009 and $] < 5.012;
4
3a02dfe7
RGS
5
6WriteMakefile
7(
8 'NAME' => 'Module::CoreList',
9 'VERSION_FROM' => 'lib/Module/CoreList.pm',
fb7e05a4 10 'ABSTRACT_FROM' => 'lib/Module/CoreList.pod',
3a02dfe7 11 'PREREQ_PM' => {
10526356
AC
12 'Test::More' => '0',
13 'List::Util' => 0,
3a02dfe7 14 },
0338a13c 15 'EXE_FILES' => [ _scripts() ],
3a02dfe7
RGS
16 'PL_FILES' => {},
17 LICENSE => 'perl',
18 @extra,
19)
20;
0338a13c
CBW
21
22sub _scripts {
23 my $scripts = 'corelist';
24 if ( $] >= 5.008009 and !$ENV{PERL_CORE} ) {
25 require Config;
26 my $version = sprintf("%vd",$^V);
27 if ( $Config::Config{versiononly} and
28 $Config::Config{startperl} =~ /\Q$version\E$/ ) {
29 require File::Copy;
30 File::Copy::copy( 'corelist', "corelist$version" );
31 $scripts = "corelist$version";
32 }
33 }
34 return $scripts;
35}