Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: tools/checklicenses/checklicenses.py

Issue 291153002: checklicenses: Recognize licenses from FreeType and Anti-Grain Geometry. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/devscripts/licensecheck.pl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Makes sure that all files contain proper licensing information.""" 6 """Makes sure that all files contain proper licensing information."""
7 7
8 8
9 import optparse 9 import optparse
10 import os.path 10 import os.path
(...skipping 12 matching lines...) Expand all
23 23
24 tocheck Specifies the directory, relative to root, to check. This defaults 24 tocheck Specifies the directory, relative to root, to check. This defaults
25 to "." so it checks everything. 25 to "." so it checks everything.
26 26
27 Examples: 27 Examples:
28 python checklicenses.py 28 python checklicenses.py
29 python checklicenses.py --root ~/chromium/src third_party""" 29 python checklicenses.py --root ~/chromium/src third_party"""
30 30
31 31
32 WHITELISTED_LICENSES = [ 32 WHITELISTED_LICENSES = [
33 'Anti-Grain Geometry',
33 'Apache (v2.0)', 34 'Apache (v2.0)',
34 'Apache (v2.0) BSD (2 clause)', 35 'Apache (v2.0) BSD (2 clause)',
35 'Apache (v2.0) GPL (v2)', 36 'Apache (v2.0) GPL (v2)',
36 'Apple MIT', # https://fedoraproject.org/wiki/Licensing/Apple_MIT_License 37 'Apple MIT', # https://fedoraproject.org/wiki/Licensing/Apple_MIT_License
37 'APSL (v2)', 38 'APSL (v2)',
38 'APSL (v2) BSD (4 clause)', 39 'APSL (v2) BSD (4 clause)',
39 'BSD', 40 'BSD',
40 'BSD (2 clause)', 41 'BSD (2 clause)',
41 'BSD (2 clause) ISC', 42 'BSD (2 clause) ISC',
42 'BSD (2 clause) MIT/X11 (BSD like)', 43 'BSD (2 clause) MIT/X11 (BSD like)',
43 'BSD (3 clause)', 44 'BSD (3 clause)',
44 'BSD (3 clause) GPL (v2)', 45 'BSD (3 clause) GPL (v2)',
45 'BSD (3 clause) ISC', 46 'BSD (3 clause) ISC',
46 'BSD (3 clause) LGPL (v2 or later)', 47 'BSD (3 clause) LGPL (v2 or later)',
47 'BSD (3 clause) LGPL (v2.1 or later)', 48 'BSD (3 clause) LGPL (v2.1 or later)',
48 'BSD (3 clause) MIT/X11 (BSD like)', 49 'BSD (3 clause) MIT/X11 (BSD like)',
49 'BSD (4 clause)', 50 'BSD (4 clause)',
50 'BSD-like', 51 'BSD-like',
51 52
52 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. 53 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice.
53 'BSD-like MIT/X11 (BSD like)', 54 'BSD-like MIT/X11 (BSD like)',
54 55
55 'BSL (v1.0)', 56 'BSL (v1.0)',
57 'FreeType (BSD like)',
58 'FreeType (BSD like) with patent clause',
56 'GPL (v2) LGPL (v2.1 or later)', 59 'GPL (v2) LGPL (v2.1 or later)',
57 'GPL (v2 or later) with Bison parser exception', 60 'GPL (v2 or later) with Bison parser exception',
58 'GPL (v2 or later) with libtool exception', 61 'GPL (v2 or later) with libtool exception',
59 'GPL (v3 or later) with Bison parser exception', 62 'GPL (v3 or later) with Bison parser exception',
60 'GPL with Bison parser exception', 63 'GPL with Bison parser exception',
61 'Independent JPEG Group License', 64 'Independent JPEG Group License',
62 'ISC', 65 'ISC',
63 'LGPL (unversioned/unknown version)', 66 'LGPL (unversioned/unknown version)',
64 'LGPL (v2)', 67 'LGPL (v2)',
65 'LGPL (v2 or later)', 68 'LGPL (v2 or later)',
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 option_parser.add_option('--ignore-suppressions', 499 option_parser.add_option('--ignore-suppressions',
497 action='store_true', 500 action='store_true',
498 default=False, 501 default=False,
499 help='Ignore path-specific license whitelist.') 502 help='Ignore path-specific license whitelist.')
500 options, args = option_parser.parse_args() 503 options, args = option_parser.parse_args()
501 return check_licenses(options, args) 504 return check_licenses(options, args)
502 505
503 506
504 if '__main__' == __name__: 507 if '__main__' == __name__:
505 sys.exit(main()) 508 sys.exit(main())
OLDNEW
« no previous file with comments | « third_party/devscripts/licensecheck.pl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698