-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build results of 48f1d32 (on master)
- Loading branch information
1 parent
6fa7b89
commit 29c1540
Showing
31 changed files
with
2,947 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#! /home/kent/perl5/perlbrew/perls/perl-5.16.0/bin/perl | ||
|
||
use strict; | ||
use Cwd; | ||
use File::Basename; | ||
use File::Spec; | ||
|
||
sub magic_number_matches { | ||
return 0 unless -e '_build/magicnum'; | ||
local *FH; | ||
open FH, '_build/magicnum' or return 0; | ||
my $filenum = <FH>; | ||
close FH; | ||
return $filenum == 491084; | ||
} | ||
|
||
my $progname; | ||
my $orig_dir; | ||
BEGIN { | ||
$^W = 1; # Use warnings | ||
$progname = basename($0); | ||
$orig_dir = Cwd::cwd(); | ||
my $base_dir = '/home/kent/perl/Dist-Zilla-Plugin-MetaProvides/Dist-Zilla-Plugin-MetaProvides-1.14000001'; | ||
if (!magic_number_matches()) { | ||
unless (chdir($base_dir)) { | ||
die ("Couldn't chdir($base_dir), aborting\n"); | ||
} | ||
unless (magic_number_matches()) { | ||
die ("Configuration seems to be out of date, please re-run 'perl Build.PL' again.\n"); | ||
} | ||
} | ||
unshift @INC, | ||
( | ||
|
||
); | ||
} | ||
|
||
close(*DATA) unless eof(*DATA); # ensure no open handles to this script | ||
|
||
use Module::Build; | ||
Module::Build->VERSION(q{0.4001}); | ||
|
||
# Some platforms have problems setting $^X in shebang contexts, fix it up here | ||
$^X = Module::Build->find_perl_interpreter; | ||
|
||
if (-e 'Build.PL' and not Module::Build->up_to_date('Build.PL', $progname)) { | ||
warn "Warning: Build.PL has been altered. You may need to run 'perl Build.PL' again.\n"; | ||
} | ||
|
||
# This should have just enough arguments to be able to bootstrap the rest. | ||
my $build = Module::Build->resume ( | ||
properties => { | ||
config_dir => '_build', | ||
orig_dir => $orig_dir, | ||
}, | ||
); | ||
|
||
$build->dispatch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.