Subject: | [PATCH] gcov2perl fails to create full path to runs directory |
When running gcov2perl, it will fail if a cover_db/ directory does not already exist while trying to create the cover_db/runs/ subdirectory. The following patch should fix that.
--- gcov2perl.old Tue Jul 5 07:48:28 2005
+++ gcov2perl Tue Jul 5 07:49:12 2005
@@ -21,6 +21,7 @@
use Getopt::Long;
use Pod::Usage;
+use File::Path qw(mkpath);
my $Options =
{
@@ -81,7 +82,7 @@
);
$db .= "/runs";
- mkdir $db unless -d $db;
+ mkpath $db unless -d $db;
$db .= "/$run";
$cover->{db} = $db;