File Coverage

blib/lib/Alien/autoconf.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 18 18 100.0


line stmt bran cond sub pod time code
1             package Alien::autoconf;
2              
3 1     1   251585 use strict;
  1         9  
  1         25  
4 1     1   4 use warnings;
  1         1  
  1         20  
5 1     1   13 use 5.008001;
  1         2  
6 1     1   4 use base qw( Alien::Base );
  1         1  
  1         209  
7              
8             # ABSTRACT: Build or find autoconf
9             our $VERSION = '0.18'; # VERSION
10              
11              
12             my %helper;
13              
14             foreach my $command (qw( autoconf autoheader autom4te autoreconf autoscan autoupdate ifnames ))
15             {
16             if($^O eq 'MSWin32')
17             {
18             $helper{$command} = sub { qq{sh -c "$command "\$*"" --} };
19             }
20             else
21             {
22             $helper{$command} = sub { $command };
23             }
24             }
25              
26             sub alien_helper {
27 1     1 1 17408 return \%helper;
28             }
29              
30             1;
31              
32             __END__