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

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

Issue 103493008: Support dual licensing under MIT and the University of Illinois/NCSA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 'Ms-PL', 84 'Ms-PL',
85 'Public domain', 85 'Public domain',
86 'Public domain BSD', 86 'Public domain BSD',
87 'Public domain BSD (3 clause)', 87 'Public domain BSD (3 clause)',
88 'Public domain BSD-like', 88 'Public domain BSD-like',
89 'Public domain LGPL (v2.1 or later)', 89 'Public domain LGPL (v2.1 or later)',
90 'libpng', 90 'libpng',
91 'zlib/libpng', 91 'zlib/libpng',
92 'SGI Free Software License B', 92 'SGI Free Software License B',
93 'University of Illinois/NCSA Open Source License (BSD like)', 93 'University of Illinois/NCSA Open Source License (BSD like)',
94
95 # Dual licenses.
Paweł Hajdan Jr. 2013/12/20 08:56:48 nit: No need for that comment. Please just remove
96 ('University of Illinois/NCSA Open Source License (BSD like) '
97 'MIT/X11 (BSD like)'),
94 ] 98 ]
95 99
96 100
97 PATH_SPECIFIC_WHITELISTED_LICENSES = { 101 PATH_SPECIFIC_WHITELISTED_LICENSES = {
98 'base/hash.cc': [ # http://crbug.com/98100 102 'base/hash.cc': [ # http://crbug.com/98100
99 'UNKNOWN', 103 'UNKNOWN',
100 ], 104 ],
101 'base/third_party/icu': [ # http://crbug.com/98087 105 'base/third_party/icu': [ # http://crbug.com/98087
102 'UNKNOWN', 106 'UNKNOWN',
103 ], 107 ],
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 option_parser.add_option('--ignore-suppressions', 501 option_parser.add_option('--ignore-suppressions',
498 action='store_true', 502 action='store_true',
499 default=False, 503 default=False,
500 help='Ignore path-specific license whitelist.') 504 help='Ignore path-specific license whitelist.')
501 options, args = option_parser.parse_args() 505 options, args = option_parser.parse_args()
502 return check_licenses(options, args) 506 return check_licenses(options, args)
503 507
504 508
505 if '__main__' == __name__: 509 if '__main__' == __name__:
506 sys.exit(main()) 510 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