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

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

Issue 8094004: Make the license tools recoginze the dual license (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 9 years, 2 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 14 matching lines...) Expand all
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 'Apache (v2.0)', 33 'Apache (v2.0)',
34 'Apache (v2.0) BSD (2 clause)', 34 'Apache (v2.0) BSD (2 clause)',
35 'Apache (v2.0) GPL (v2)',
35 'BSD', 36 'BSD',
36 'BSD (2 clause)', 37 'BSD (2 clause)',
37 'BSD (2 clause) MIT/X11 (BSD like)', 38 'BSD (2 clause) MIT/X11 (BSD like)',
38 'BSD (3 clause)', 39 'BSD (3 clause)',
39 'BSD (3 clause) ISC', 40 'BSD (3 clause) ISC',
40 'BSD (3 clause) LGPL (v2.1 or later)', 41 'BSD (3 clause) LGPL (v2.1 or later)',
41 'BSD (3 clause) MIT/X11 (BSD like)', 42 'BSD (3 clause) MIT/X11 (BSD like)',
42 'BSD (4 clause)', 43 'BSD (4 clause)',
43 'BSD-like', 44 'BSD-like',
44 45
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 'to "../.." relative to the script file, which ' 518 'to "../.." relative to the script file, which '
518 'will normally be the repository root.') 519 'will normally be the repository root.')
519 option_parser.add_option('-v', '--verbose', action='store_true', 520 option_parser.add_option('-v', '--verbose', action='store_true',
520 default=False, help='Print debug logging') 521 default=False, help='Print debug logging')
521 option_parser.add_option('--ignore-suppressions', 522 option_parser.add_option('--ignore-suppressions',
522 action='store_true', 523 action='store_true',
523 default=False, 524 default=False,
524 help='Ignore path-specific license whitelist.') 525 help='Ignore path-specific license whitelist.')
525 options, args = option_parser.parse_args() 526 options, args = option_parser.parse_args()
526 main(options, args) 527 main(options, args)
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