line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Install::PerlTar; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
763
|
use 5.006001; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
46
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
6
|
1
|
|
|
1
|
|
591
|
use Module::Install::Base (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
199
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our @ISA = qw(Module::Install::Base); |
9
|
|
|
|
|
|
|
our $VERSION = '1.001'; |
10
|
|
|
|
|
|
|
$VERSION =~ s/_//ms; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub use_ptar { |
13
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
14
|
|
|
|
|
|
|
|
15
|
0
|
0
|
|
|
|
|
return if not $Module::Install::AUTHOR; |
16
|
|
|
|
|
|
|
|
17
|
0
|
0
|
|
|
|
|
eval { require Archive::Tar; 1; } or warn "Cannot find Archive::Tar\n"; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
18
|
0
|
0
|
|
|
|
|
eval { require IO::Compress::Gzip; 1; } |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
or warn "Cannot find IO::Compress::Gzip\n"; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
my %args = ( |
22
|
|
|
|
|
|
|
TAR => 'ptar', |
23
|
|
|
|
|
|
|
TARFLAGS => '-c -C -f', |
24
|
|
|
|
|
|
|
COMPRESS => |
25
|
|
|
|
|
|
|
q{perl -MIO::Compress::Gzip=gzip,:constants -e"my $$in = $$ARGV[0]; gzip($$in => qq($$in.gz), q(Level) => Z_BEST_COMPRESSION, q(BinModeIn) => 1) or die q(gzip failed); unlink $$in;"}, |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
$self->makemaker_args( dist => \%args ); |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
return 1; |
31
|
|
|
|
|
|
|
} ## end sub use_ptar |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
__END__ |