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
1 use ExtUtils::MakeMaker;
2
3 push @extra, 'INSTALLDIRS' => 'perl' if $] >= 5.008009 and $] < 5.012;
4
5
6 WriteMakefile
7 (
8     'NAME' => 'Module::CoreList',
9     'VERSION_FROM' => 'lib/Module/CoreList.pm',
10     'ABSTRACT_FROM' => 'lib/Module/CoreList.pod',
11     'PREREQ_PM' => {
12         'Test::More' => '0',
13         'List::Util' => 0,
14     },
15     'EXE_FILES' => [ _scripts() ],
16     'PL_FILES' => {},
17     LICENSE => 'perl',
18     @extra,
19 )
20 ;
21
22 sub _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 }