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 $vers = $] >= 5.008 ? '-5.8' : ''; my $vers = ''; WriteMakefile ( NAME => 'Astro::SpaceTrack', VERSION_FROM => 'lib/Astro/SpaceTrack.pm', PREREQ_PM => { $^O eq 'MSWin32' ? () : ( 'LWP::UserAgent' => 0, ) }, PL_FILES => {}, # Prevent old MakeMaker from running Build.PL EXE_FILES => \@exe_files, # 'linkext' => {LINKTYPE => ''}, 'dist' => {COMPRESS => 'gzip', SUFFIX => 'gz'}, realclean => {FILES => join ' ', @clean_files}, $] >= 5.005 ? ( AUTHOR => 'Tom Wyant (wyant at cpan dot org)', ABSTRACT => 'Download satellite orbital elements from Space Track', BINARY_LOCATION => "$Config{archname}$vers/Astro-SpaceTrack.tar.gz", (ExtUtils::MakeMaker->VERSION >= 6.31 ? (LICENSE => 'perl') : ()) ) : (), );