From: Peter O. <obe...@us...> - 2012-10-10 08:07:04
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory vz-cvs-4.sog:/tmp/cvs-serv24026/bin Modified Files: genhtml Log Message: genhtml: handle source files in root directory gracefully Index: genhtml =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/genhtml,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** genhtml 8 Oct 2012 13:02:45 -0000 1.67 --- genhtml 10 Oct 2012 08:07:01 -0000 1.68 *************** *** 800,803 **** --- 800,806 ---- = process_dir($dir_name); + # Handle files in root directory gracefully + $dir_name = "root" if ($dir_name eq ""); + # Remove prefix if applicable if (!$no_prefix && $dir_prefix) *************** *** 954,957 **** --- 957,964 ---- } + # Handle files in root directory gracefully + $rel_dir = "root" if ($rel_dir eq ""); + $trunc_dir = "root" if ($trunc_dir eq ""); + $base_dir = get_relative_base_path($rel_dir); *************** *** 2197,2200 **** --- 2204,2210 ---- } + # Check if any prefix remains + return undef if (!%prefix); + # Calculate sum of lengths for all prefixes foreach $current (keys(%prefix)) |