diff options
author | dmg <dmg@uvic.ca> | 2011-02-03 22:21:37 +0900 |
---|---|---|
committer | dmg <dmg@uvic.ca> | 2011-02-03 22:21:37 +0900 |
commit | 0d3a16f25e7d7c657d8c050af0afa4ab2cae174f (patch) | |
tree | 6dd3997f213b71e2297ce9b61edf5c760a8500ea | |
parent | e78b5422fb36628a196ba1b0e62de8957817a6ca (diff) | |
download | ninka-0d3a16f25e7d7c657d8c050af0afa4ab2cae174f.tar.gz |
Fixed minors bugs
-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'"; |