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

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

Issue 10985065: Whitelist the University of Illinois Opensource License (http://llvm.org/releases/3.1/LICENSE.TXT) … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 # TODO(phajdan.jr): Make licensecheck not print the comma after 1.1. 76 # TODO(phajdan.jr): Make licensecheck not print the comma after 1.1.
77 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2 or later)', 77 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2 or later)',
78 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2.1 or later)', 78 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2.1 or later)',
79 79
80 'MIT/X11 (BSD like)', 80 'MIT/X11 (BSD like)',
81 'Ms-PL', 81 'Ms-PL',
82 'Public domain', 82 'Public domain',
83 'libpng', 83 'libpng',
84 'zlib/libpng', 84 'zlib/libpng',
85 'SGI Free Software License B', 85 'SGI Free Software License B',
86 'University of Illinois/NCSA Open Source License (BSD like)',
86 ] 87 ]
87 88
88 89
89 PATH_SPECIFIC_WHITELISTED_LICENSES = { 90 PATH_SPECIFIC_WHITELISTED_LICENSES = {
90 'base/hash.cc': [ # http://crbug.com/98100 91 'base/hash.cc': [ # http://crbug.com/98100
91 'UNKNOWN', 92 'UNKNOWN',
92 ], 93 ],
93 'base/third_party/icu': [ # http://crbug.com/98087 94 'base/third_party/icu': [ # http://crbug.com/98087
94 'UNKNOWN', 95 'UNKNOWN',
95 ], 96 ],
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 option_parser.add_option('--ignore-suppressions', 508 option_parser.add_option('--ignore-suppressions',
508 action='store_true', 509 action='store_true',
509 default=False, 510 default=False,
510 help='Ignore path-specific license whitelist.') 511 help='Ignore path-specific license whitelist.')
511 options, args = option_parser.parse_args() 512 options, args = option_parser.parse_args()
512 return check_licenses(options, args) 513 return check_licenses(options, args)
513 514
514 515
515 if '__main__' == __name__: 516 if '__main__' == __name__:
516 sys.exit(main()) 517 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