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   313863 use strict;
  1         11  
  1         30  
4 1     1   6 use warnings;
  1         2  
  1         27  
5 1     1   18 use 5.008001;
  1         4  
6 1     1   7 use base qw( Alien::Base );
  1         2  
  1         592  
7              
8             # ABSTRACT: Build or find autoconf
9             our $VERSION = '0.19'; # 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 23904 return \%helper;
28             }
29              
30             1;
31              
32             __END__