Makefile-orig.PL

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/RDF/Simple/Serializer.pm ↑ Summary
1  
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 my $VERSION = 1.29;
6  
7 0 ▶use inc::Module::Install;
Subroutine BEGIN: called CC=1 SCAR=2.6
8  
9 version(0.419);
10 all_from('lib/RDF/Simple.pm');
11 author('Martin Thurn mthurn@cpan.org');
12 perl_version(5.005);
13  
14 requires('Class::MethodMaker');
15 requires('File::Slurp');
16 test_requires('IO::CaptureOutput');
17 requires('LWP::UserAgent');
18 requires('Regexp::Common');
19 test_requires('Test::File');
20 test_requires('Test::Simple');
21 requires('URI::Escape');
22 requires('XML::SAX');
23 recommends('XML::SAX::Expat'); # Need this for Solaris and Linux?
24  
25 sub MY::postamble
26 {
27 my $ret = '';
28 $ret .= <<'PART0';
29 coverage :
30 - mkdir cover_db
31 - cover -delete
32 - $(MAKE) HARNESS_PERL_SWITCHES=-MDevel::Cover test
33 cover
34 firefox cover_db/coverage.html
35 PART0
36 return $ret;
37 } # MY::postamble
38  
39 use Env;
40 if ($ENV{MTHURN_PERL_DEV})
41 {
42 warn "DDD This is author's development environment\n";
43 use_ptar();
44 } # if
45  
46 WriteAll;
47  
48 if ($ENV{MTHURN_PERL_DEV})
49 {
50 my $sFnameMakefile = q{Makefile};
51 eval "use File::Slurp";
52 my $s = read_file($sFnameMakefile);
53 if ($s !~ s/(DIRFILESEP\s*=\s*).+$/$1\//m)
54 {
55 warn " EEE did not find DIRFILESEP in Makefile\n";
56 } # if
57 if ($s !~ s/(pm_to_blib\()\{\{\@ARGV}}/$1 . '{@ARGV}'/e)
58 {
59 warn " EEE did not find pm_to_blib@ARGV in Makefile\n";
60 } # if
61 if ($s !~ s/(from_to\s+=>\s+)\{\{\@ARGV}}/$1 . '{@ARGV}'/e)
62 {
63 warn " EEE did not find from_to@ARGV in Makefile\n";
64 } # if
65 write_file($sFnameMakefile, $s);
66 } # if
67  
68 __END__
« blib/lib/RDF/Simple/Serializer.pm ↑ Summary