Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (24 sloc) 0.694 kb
if (-e ".git" or !-e "bin/cpanm") {
print STDERR "Generating bin/cpanm\n";
open my $out, ">bin/cpanm" or die $!;
open my $in, "<cpanm" or die $!;
while (<$in>) {
s|^#!/usr/bin/env perl|#!perl|; # so MakeMaker can fix it
print $out $_
}
close $out;
}
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'App::cpanminus',
VERSION_FROM => "lib/App/cpanminus.pm",
ABSTRACT => 'Get, unpack, build and install modules from CPAN.',
PREREQ_PM => {
'LWP' => 0,
'Module::Build' => 0.28,
'ExtUtils::MakeMaker' => 6.31,
'ExtUtils::Install' => 1.43,
},
LICENSE => 'perl',
EXE_FILES => [ 'bin/cpanm' ],
);
Jump to Line
Something went wrong with that request. Please try again.