Dist-Zilla-Plugin-TestMLIncluder

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/TestMLIncluder.pm  view on Meta::CPAN

open IN, '<', $file or die "Can't open '$file' for input";
my @bin = <IN>;
close IN;

shift @bin;
unshift @bin, "#!$Config{perlpath}\n";
open OUT, '>', $file or die "Can't open '$file' for output";
print OUT @bin;
close OUT;

chmod 0755, 'inc/bin/testml-cpan';

if ($^O eq 'MSWin32') {
  my $file = 'inc/bin/testml-cpan.cmd';
  open OUT, '>', $file or die "Can't open '$file' for output";
  print OUT 'if exist "%~dpn0" perl %0 %*', "\r\n";
  close OUT;

  find sub {
    return unless -f && /\.t$/;
    my $file = $_;



( run in 0.514 second using v1.01-cache-2.11-cpan-8d75d55dd25 )