Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
executable file 55 lines (50 sloc) 1.9 KB
#!/usr/bin/perl -w
use strict;
use warnings;
BEGIN { exit 0 if $] < 5.008008 }
require 5.8.1;
if (!eval q[use Module::Build::Compat 0.02; use Module::Build 0.30; 1]) {
print qq[This module requires Module::Build to install itself.\n];
require ExtUtils::MakeMaker;
my $yn =
ExtUtils::MakeMaker::prompt(q[ Install Module::Build now from CPAN?],
if ($yn !~ m[^y]i) {
warn qq[ *** Cannot install without Module::Build. Exiting ...\n];
exit 0;
require Cwd;
require File::Spec;
require CPAN;
# Save this 'cause CPAN will chdir all over the place.
my $cwd = Cwd::cwd();
if (!CPAN::Shell->expand(q[Module], q[Module::Build::Compat])->uptodate) {
warn qq[Couldn't install Module::Build, giving up.\n];
exit 0;
if (!chdir $cwd) {
warn qq[Cannot chdir() back to $cwd: $!];
exit 0;
if (!eval q[use Module::Build::Compat 0.02; use Module::Build 0.30; 1]) {
warn $@;
exit 0;
Module::Build::Compat->run_build_pl(args => \@ARGV);
require Module::Build;
Module::Build::Compat->write_makefile(build_class => q[Module::Build]);
Copyright (C) 2008-2009 by Sanko Robinson <>
This program is free software; you can redistribute it and/or modify it
under the terms of The Artistic License 2.0. See the LICENSE file
included with this distribution or For
clarification, see
When separated from the distribution, all POD documentation is covered by
the Creative Commons Attribution-Share Alike 3.0 License. See For
clarification, see
$Id: Makefile.PL 3f42870 2009-02-12 05:01:56Z $
Jump to Line
Something went wrong with that request. Please try again.