File Coverage

Build
Criterion Covered Total %
statement 36 41 87.8
branch 6 16 37.5
condition 1 3 33.3
subroutine 7 7 100.0
pod n/a
total 50 67 74.6


line stmt bran cond sub pod time code
1             #! /usr/local/bin/perl
2              
3 1     1   5 use strict;
  1         2  
  1         21  
4 1     1   3 use Cwd;
  1         2  
  1         56  
5 1     1   4 use File::Basename;
  1         1  
  1         75  
6 1     1   4 use File::Spec;
  1         1  
  1         134  
7              
8             return 0 unless -e '_build/magicnum';
9 1 50   1   27 my $FH;
10 1         1 open $FH, '<','_build/magicnum' or return 0;
11 1 50       79 my $filenum = <$FH>;
12 1         22 close $FH;
13 1         8 return $filenum == 52538;
14 1         10 }
15              
16             my $progname;
17 1         2 my $orig_dir;
18             BEGIN {
19             $^W = 1; # Use warnings
20 1     1   3 $progname = basename($0);
21 1         51 $orig_dir = Cwd::cwd();
22 1         2272 my $base_dir = '/root/.cpan/build/Bundle-Locale-CLDR-Easternafrica-0.34.1-0';
23 1         12 if (!magic_number_matches()) {
24 1 50       11 unless (chdir($base_dir)) {
25 0 0       0 die ("Couldn't chdir($base_dir), aborting\n");
26 0         0 }
27             unless (magic_number_matches()) {
28 0 0       0 die ("Configuration seems to be out of date, please re-run 'perl Build.PL' again.\n");
29 0         0 }
30             }
31             unshift @INC,
32 1         2 (
33              
34             );
35             if ($INC[-1] ne '.') {
36 1 50       8 push @INC, '.';
37 1         78 }
38              
39             }
40              
41             close(*DATA) unless eof(*DATA); # ensure no open handles to this script
42 1 50       3  
43             use Module::Build;
44 1     1   549 Module::Build->VERSION(q{0.40});
  1         60650  
  1         1071  
45 1         18  
46             # Some platforms have problems setting $^X in shebang contexts, fix it up here
47             $^X = Module::Build->find_perl_interpreter;
48 1         7  
49             if (-e 'Build.PL' and not Module::Build->up_to_date('Build.PL', $progname)) {
50 1 50 33     265706 warn "Warning: Build.PL has been altered. You may need to run 'perl Build.PL' again.\n";
51 0         0 }
52              
53             # This should have just enough arguments to be able to bootstrap the rest.
54             my $build = Module::Build->resume (
55 1         97 properties => {
56             config_dir => '_build',
57             orig_dir => $orig_dir,
58             },
59             );
60              
61             $build->dispatch;