From: Peter O. <obe...@us...> - 2013-01-10 09:02:35
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25319 Modified Files: geninfo Log Message: geninfo: make empty data directories non-fatal Emit a warning when no data file is found in a data directory to allow processing of additional directories. Based on suggestion by ric...@ya.... Index: geninfo =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v retrieving revision 1.118 retrieving revision 1.119 diff -C2 -d -r1.118 -r1.119 *** geninfo 13 Nov 2012 09:58:53 -0000 1.118 --- geninfo 10 Jan 2013 09:02:32 -0000 1.119 *************** *** 685,690 **** @file_list = `find "$directory" $maxdepth $follow -name \\*$ext -type f 2>/dev/null`; chomp(@file_list); ! @file_list or ! die("ERROR: no $ext files found in $directory!\n"); $prefix = get_common_prefix(1, @file_list); info("Found %d %s files in %s\n", $#file_list+1, $type, --- 685,693 ---- @file_list = `find "$directory" $maxdepth $follow -name \\*$ext -type f 2>/dev/null`; chomp(@file_list); ! if (!@file_list) { ! warn("WARNING: no $ext files found in $directory - ". ! "skipping!\n"); ! return; ! } $prefix = get_common_prefix(1, @file_list); info("Found %d %s files in %s\n", $#file_list+1, $type, |