Index: third_party/devscripts/licensecheck.pl |
diff --git a/third_party/devscripts/licensecheck.pl b/third_party/devscripts/licensecheck.pl |
index 39f7d541a6c5ffd6c54eda6b0cf86765ed1f9d6c..a59bbf96320c444ae55dd3cb961ed85831daddea 100755 |
--- a/third_party/devscripts/licensecheck.pl |
+++ b/third_party/devscripts/licensecheck.pl |
@@ -342,10 +342,17 @@ sub remove_comments($) { |
$_ = $_[0]; |
# Remove Fortran comments |
s/^[cC] //gm; |
+ # Remove .ASM comments |
+ s#^;\*?##gm; |
+ # Remove .S comments |
+ s#^@ ##gm; |
+ # Remove new lines |
tr/\t\r\n/ /; |
# Remove C / C++ comments |
s#(\*/|/[/*])##g; |
+ # Remove all characters not matching search |
tr% A-Za-z.,@;0-9\(\)/-%%cd; |
+ # Collapse multiple spaces into single space |
tr/ //s; |
$_[0] = $_; |
} |