OLD | NEW |
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 json | 9 import json |
10 import optparse | 10 import optparse |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 ('University of Illinois/NCSA Open Source License (BSD like) ' | 101 ('University of Illinois/NCSA Open Source License (BSD like) ' |
102 'MIT/X11 (BSD like)'), | 102 'MIT/X11 (BSD like)'), |
103 ] | 103 ] |
104 | 104 |
105 | 105 |
106 PATH_SPECIFIC_WHITELISTED_LICENSES = { | 106 PATH_SPECIFIC_WHITELISTED_LICENSES = { |
107 'base/third_party/icu': [ # http://crbug.com/98087 | 107 'base/third_party/icu': [ # http://crbug.com/98087 |
108 'UNKNOWN', | 108 'UNKNOWN', |
109 ], | 109 ], |
110 | 110 |
| 111 'base/third_party/libevent': [ # http://crbug.com/98309 |
| 112 'UNKNOWN', |
| 113 ], |
| 114 |
111 # http://code.google.com/p/google-breakpad/issues/detail?id=450 | 115 # http://code.google.com/p/google-breakpad/issues/detail?id=450 |
112 'breakpad/src': [ | 116 'breakpad/src': [ |
113 'UNKNOWN', | 117 'UNKNOWN', |
114 ], | 118 ], |
115 | 119 |
116 'buildtools/third_party/libc++/trunk/test': [ | 120 'buildtools/third_party/libc++/trunk/test': [ |
117 # http://llvm.org/bugs/show_bug.cgi?id=18291 | 121 # http://llvm.org/bugs/show_bug.cgi?id=18291 |
118 'UNKNOWN', | 122 'UNKNOWN', |
119 ], | 123 ], |
120 | 124 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 'third_party/junit/src': [ | 406 'third_party/junit/src': [ |
403 # https://github.com/junit-team/junit/issues/1132 | 407 # https://github.com/junit-team/junit/issues/1132 |
404 'UNKNOWN', | 408 'UNKNOWN', |
405 ], | 409 ], |
406 'third_party/lcov': [ # http://crbug.com/98304 | 410 'third_party/lcov': [ # http://crbug.com/98304 |
407 'UNKNOWN', | 411 'UNKNOWN', |
408 ], | 412 ], |
409 'third_party/lcov/contrib/galaxy/genflat.pl': [ | 413 'third_party/lcov/contrib/galaxy/genflat.pl': [ |
410 'GPL (v2 or later)', | 414 'GPL (v2 or later)', |
411 ], | 415 ], |
412 'third_party/libevent': [ # http://crbug.com/98309 | |
413 'UNKNOWN', | |
414 ], | |
415 'third_party/libjingle/source/talk': [ # http://crbug.com/98310 | 416 'third_party/libjingle/source/talk': [ # http://crbug.com/98310 |
416 'UNKNOWN', | 417 'UNKNOWN', |
417 ], | 418 ], |
418 'third_party/libjpeg_turbo': [ # http://crbug.com/98314 | 419 'third_party/libjpeg_turbo': [ # http://crbug.com/98314 |
419 'UNKNOWN', | 420 'UNKNOWN', |
420 ], | 421 ], |
421 | 422 |
422 # Many liblouis files are mirrored but not used in the NaCl module. | 423 # Many liblouis files are mirrored but not used in the NaCl module. |
423 # They are not excluded from the mirror because of lack of infrastructure | 424 # They are not excluded from the mirror because of lack of infrastructure |
424 # support. Getting license headers added to the files where missing is | 425 # support. Getting license headers added to the files where missing is |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 action='store_true', | 760 action='store_true', |
760 default=False, | 761 default=False, |
761 help='Ignore path-specific license whitelist.') | 762 help='Ignore path-specific license whitelist.') |
762 option_parser.add_option('--json', help='Path to JSON output file') | 763 option_parser.add_option('--json', help='Path to JSON output file') |
763 options, args = option_parser.parse_args() | 764 options, args = option_parser.parse_args() |
764 return check_licenses(options, args) | 765 return check_licenses(options, args) |
765 | 766 |
766 | 767 |
767 if '__main__' == __name__: | 768 if '__main__' == __name__: |
768 sys.exit(main()) | 769 sys.exit(main()) |
OLD | NEW |