am 82259117: am 008a0a5d: am 53493a9b: Merge "Sort NOTICE entries."

* commit '82259117753adffdab3ce74efb12d30a5289ad2b':
  Sort NOTICE entries.
This commit is contained in:
Elliott Hughes 2012-08-14 15:46:26 -07:00 committed by Android Git Automerger
commit ff45d5cdbf
2 changed files with 3518 additions and 3508 deletions

File diff suppressed because it is too large Load Diff

View File

@ -34,9 +34,16 @@ copyrights = set()
def ExtractCopyrightAt(lines, i):
hash = lines[i].startswith("#")
# Do we need to back up to find the start of the copyright header?
start = i
if not hash:
while start > 0:
if "/*" in lines[start - 1]:
break
start -= 1
# Read comment lines until we hit something that terminates a
# copyright header.
start = i
while i < len(lines):
if "*/" in lines[i]:
break
@ -138,7 +145,7 @@ for arg in args:
#print path
for copyright in copyrights:
for copyright in sorted(copyrights):
print copyright.encode('utf-8')
print
print '-------------------------------------------------------------------'