File: mkcoveragepod.pl

package info (click to toggle)
libtm-perl 1.53-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,780 kB
  • ctags: 594
  • sloc: perl: 34,611; sh: 377; makefile: 50
file content (52 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
use TM;

use constant DL => "\n\n";

my $TMVERSION = shift @ARGV || die "no version provided";

print <<EOT;
package TM::Coverage;

our \$VERSION = '0.1';

=pod

=head1 NAME

TM::Coverage - Topic Maps, Code Coverage

=head1 DESCRIPTION

This auxiliary package keeps track of the code coverage. Probably
quite irrelevant for a user.

Automatically generated for TM ($TMVERSION).

EOT

my $coverage = `cat /tmp/coverage.txt`;

$coverage =~ s/Reading.*?cover_db\n//s;
$coverage =~ s/Writing HTML.*done.//s;

print join "\n", map { "   $_" } split /\n/, $coverage;

print <<EOT;


=head1 SEE ALSO

L<TM>

=head1 COPYRIGHT AND LICENSE

Copyright 200[8] by Robert Barta, E<lt>drrho\@cpan.orgE<gt>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.

=cut

1;

EOT