* commit 'ff45d5cdbfc4117d69fc688f12ec251297eb8751': Sort NOTICE entries.
This commit is contained in:
commit
cc9f4d56c0
7015
libc/NOTICE
7015
libc/NOTICE
File diff suppressed because it is too large
Load Diff
@ -34,9 +34,16 @@ copyrights = set()
|
|||||||
def ExtractCopyrightAt(lines, i):
|
def ExtractCopyrightAt(lines, i):
|
||||||
hash = lines[i].startswith("#")
|
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
|
# Read comment lines until we hit something that terminates a
|
||||||
# copyright header.
|
# copyright header.
|
||||||
start = i
|
|
||||||
while i < len(lines):
|
while i < len(lines):
|
||||||
if "*/" in lines[i]:
|
if "*/" in lines[i]:
|
||||||
break
|
break
|
||||||
@ -138,7 +145,7 @@ for arg in args:
|
|||||||
|
|
||||||
#print path
|
#print path
|
||||||
|
|
||||||
for copyright in copyrights:
|
for copyright in sorted(copyrights):
|
||||||
print copyright.encode('utf-8')
|
print copyright.encode('utf-8')
|
||||||
print
|
print
|
||||||
print '-------------------------------------------------------------------'
|
print '-------------------------------------------------------------------'
|
||||||
|
Loading…
Reference in New Issue
Block a user