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

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: 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
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 'ISC', 64 'ISC',
62 'LGPL (unversioned/unknown version)', 65 'LGPL (unversioned/unknown version)',
63 'LGPL (v2)', 66 'LGPL (v2)',
64 'LGPL (v2 or later)', 67 'LGPL (v2 or later)',
65 'LGPL (v2.1)', 68 'LGPL (v2.1)',
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 option_parser.add_option('--ignore-suppressions', 500 option_parser.add_option('--ignore-suppressions',
498 action='store_true', 501 action='store_true',
499 default=False, 502 default=False,
500 help='Ignore path-specific license whitelist.') 503 help='Ignore path-specific license whitelist.')
501 options, args = option_parser.parse_args() 504 options, args = option_parser.parse_args()
502 return check_licenses(options, args) 505 return check_licenses(options, args)
503 506
504 507
505 if '__main__' == __name__: 508 if '__main__' == __name__:
506 sys.exit(main()) 509 sys.exit(main())
OLDNEW
« third_party/devscripts/licensecheck.pl ('K') | « third_party/devscripts/licensecheck.pl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698