From 2aa142ffb20337e60f81642bed1c11d24a3756b1 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 23 Jul 2014 11:10:48 -0700 Subject: [PATCH] Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros. (cherry picked from commit 5d2f86f36341b76f84770d8966d7686a59555ae9) Change-Id: Iddf22c8d9ff7a4d1205d37bb58c6235af681d795 --- libc/tools/generate-NOTICE.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/tools/generate-NOTICE.py b/libc/tools/generate-NOTICE.py index 4c9e92784..8cd75a3b7 100755 --- a/libc/tools/generate-NOTICE.py +++ b/libc/tools/generate-NOTICE.py @@ -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