Permalink
Browse files

Use outputfile for both cover and cpancover.

  • Loading branch information...
pjcj committed Oct 9, 2006
1 parent 3eff3af commit 8ae2f4c7c887ebc82596c554b7ba220e60fe81c7
Showing with 3 additions and 3 deletions.
  1. +3 −3 cpancover
View
@@ -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" :
@@ -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;
@@ -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)
{

0 comments on commit 8ae2f4c

Please sign in to comment.