OSDN Git Service

Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
authorElliott Hughes <enh@google.com>
Wed, 23 Jul 2014 18:10:48 +0000 (11:10 -0700)
committerElliott Hughes <enh@google.com>
Wed, 23 Jul 2014 18:10:48 +0000 (11:10 -0700)
Change-Id: I99f9d2e0a28342663cec6aed483e1a23c12e5e87

libc/tools/generate-NOTICE.py

index 4c9e927..8cd75a3 100755 (executable)
@@ -144,7 +144,7 @@ for arg in args:
 
             i = 0
             while i < len(lines):
-                if "Copyright" in lines[i] and not "__COPYRIGHT" in lines[i]:
+                if "Copyright" in lines[i] and not "@(#) Copyright" in lines[i]:
                     i = ExtractCopyrightAt(lines, i)
                 i += 1