use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. # TODO: add common SCS commands (ci, co) as exe_files my $exe_files = ''; mkdir 'bin', 0777; sub config_sub { print < 'P4.pm', AUTHOR => 'John Cope (John.Cope@Cognos.Com)' ) if ($ExtUtils::MakeMaker::Version >= 5.4301); WriteMakefile( NAME => 'P4', VERSION_FROM => 'P4.pm', # finds $VERSION # fix pl2bat ensuring binaries aren't wrapped in a .bat # line 85ish, add condition: unless -B EXE_FILES => $exe_files, CONFIGURE => \&config_sub, BINARY_LOCATION => 'P4-0.18-PPM.tar.gz', @extras );