use 5.006; use strict; use warnings; use Config; use ExtUtils::MakeMaker qw{WriteMakefile prompt}; use FileHandle; use Getopt::Std; my %opt; getopts ('ny', \%opt) or die <new ("<$fni") or die <new (">$fno") or die <) {print $fho $_} } @clean_files = @exe_files = map {"[.bin]$_.com"} @exe_files; } else { @exe_files = map {"bin/$_"} @exe_files; } } (my $mmv = ExtUtils::MakeMaker->VERSION) =~ s/_//g; my %attr = ( NAME => 'Astro::SpaceTrack', VERSION_FROM => 'lib/Astro/SpaceTrack.pm', PREREQ_PM => { 'Compress::Zlib' => 0, 'HTML::Parser' => 0, 'HTTP::Response' => 0, 'HTTP::Status' => 0, 'LWP::UserAgent' => 0, 'Params::Util' => 0.12, }, PL_FILES => {}, # Prevent old MakeMaker from running Build.PL EXE_FILES => \@exe_files, 'dist' => {COMPRESS => 'gzip', SUFFIX => 'gz'}, realclean => {FILES => join ' ', @clean_files}, AUTHOR => 'Tom Wyant (wyant at cpan dot org)', ABSTRACT => 'Download satellite orbital elements from Space Track', ); $mmv >= 6.31 and $attr{LICENSE} = 'perl'; $mmv >= 6.4501 and $attr{META_MERGE} = { resources => { bugtracker => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Astro-SpaceTrack', license => 'http://dev.perl.org/licenses/', }, }; WriteMakefile (%attr);