Navigation Menu

Skip to content

Commit

Permalink
Use outputfile for both cover and cpancover.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed Oct 9, 2006
1 parent 3eff3af commit 8ae2f4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpancover
Expand Up @@ -235,7 +235,7 @@ EOF
sub class
{
my ($pc) = @_;
$pc eq "n/a" ? "na" :
$pc eq "n/a" ? "na" :
$pc < 75 ? "c0" :
$pc < 90 ? "c1" :
$pc < 100 ? "c2" :
Expand All @@ -248,7 +248,7 @@ sub write_html
chdir $d or die "Can't chdir $d: $!\n";

my $results = read_results;
my $f = "$Options->{outputdir}/cpancover.html";
my $f = "$Options->{outputdir}/$Options->{outputfile}";
print "\n\nWriting cpancover output to $f ...\n";

my %vals;
Expand Down Expand Up @@ -278,7 +278,7 @@ sub write_html
$db->calculate_summary(%options);

push @{$vars->{modules}}, $module;
$vals{$module}{link} = "$module/coverage.html";
$vals{$module}{link} = "$module/$Options->{outputfile}";

for my $criterion (@$criteria)
{
Expand Down

0 comments on commit 8ae2f4c

Please sign in to comment.