diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | extComments/extComments.pl | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2011-02-03 <dmg@uvic.ca> + * extComments/extComments.pl (Determine_Comments_Extractor): Fixed + a bug introduced in the comments extractor. + * matcher/rules.dict: Fixed a bug in the sunRPM license. It wasn't detected. * filter/criticalword.dict: strenghten some rules to avoid some diff --git a/extComments/extComments.pl b/extComments/extComments.pl index 91f4ed9..a270b5a 100755 --- a/extComments/extComments.pl +++ b/extComments/extComments.pl @@ -88,7 +88,7 @@ sub Determine_Comments_Extractor # return "$path/hashComments.pl -p ';' '$f'";; } elsif ($ext =~ /^(java|c|cpp|h|cxx|c\+\+|cc)$/ ) { my $comm = `which comments`; - if ($comm eq "") { + if ($comm ne "") { return "comments -c1 '$f' 2> /dev/null"; } else { return "cat '$f' | head -400 > '${f}.comments'"; |