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

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

Issue 12502025: Add test for Khronos Group license and whitelist it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. 50 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice.
51 'BSD-like MIT/X11 (BSD like)', 51 'BSD-like MIT/X11 (BSD like)',
52 52
53 'BSL (v1.0)', 53 'BSL (v1.0)',
54 'GPL (v2 or later) with Bison parser exception', 54 'GPL (v2 or later) with Bison parser exception',
55 'GPL (v2 or later) with libtool exception', 55 'GPL (v2 or later) with libtool exception',
56 'GPL (v3 or later) with Bison parser exception', 56 'GPL (v3 or later) with Bison parser exception',
57 'GPL with Bison parser exception', 57 'GPL with Bison parser exception',
58 'ISC', 58 'ISC',
59 'Khronos Group',
Paweł Hajdan Jr. 2013/03/25 18:29:45 Please move it to an exclusion section specific to
59 'LGPL', 60 'LGPL',
60 'LGPL (v2)', 61 'LGPL (v2)',
61 'LGPL (v2 or later)', 62 'LGPL (v2 or later)',
62 'LGPL (v2.1)', 63 'LGPL (v2.1)',
63 'LGPL (v3 or later)', 64 'LGPL (v3 or later)',
64 65
65 # TODO(phajdan.jr): Make licensecheck convert that comma to a dot. 66 # TODO(phajdan.jr): Make licensecheck convert that comma to a dot.
66 'LGPL (v2,1 or later)', 67 'LGPL (v2,1 or later)',
67 68
68 'LGPL (v2.1 or later)', 69 'LGPL (v2.1 or later)',
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 option_parser.add_option('--ignore-suppressions', 539 option_parser.add_option('--ignore-suppressions',
539 action='store_true', 540 action='store_true',
540 default=False, 541 default=False,
541 help='Ignore path-specific license whitelist.') 542 help='Ignore path-specific license whitelist.')
542 options, args = option_parser.parse_args() 543 options, args = option_parser.parse_args()
543 return check_licenses(options, args) 544 return check_licenses(options, args)
544 545
545 546
546 if '__main__' == __name__: 547 if '__main__' == __name__:
547 sys.exit(main()) 548 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