| 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 """Utility for checking and processing licensing information in third_party | 6 """Utility for checking and processing licensing information in third_party |
| 7 directories. | 7 directories. |
| 8 | 8 |
| 9 Usage: licenses.py <command> | 9 Usage: licenses.py <command> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 # Paths from the root of the tree to directories to skip. | 23 # Paths from the root of the tree to directories to skip. |
| 24 PRUNE_PATHS = set([ | 24 PRUNE_PATHS = set([ |
| 25 # Same module occurs in crypto/third_party/nss and net/third_party/nss, so | 25 # Same module occurs in crypto/third_party/nss and net/third_party/nss, so |
| 26 # skip this one. | 26 # skip this one. |
| 27 os.path.join('third_party','nss'), | 27 os.path.join('third_party','nss'), |
| 28 | 28 |
| 29 # Placeholder directory only, not third-party code. | 29 # Placeholder directory only, not third-party code. |
| 30 os.path.join('third_party','adobe'), | 30 os.path.join('third_party','adobe'), |
| 31 | 31 |
| 32 # Already covered by //third_party/android_tools. |
| 33 os.path.join('third_party','android_tools_internal'), |
| 34 |
| 32 # Apache 2.0 license. See crbug.com/140478 | 35 # Apache 2.0 license. See crbug.com/140478 |
| 33 os.path.join('third_party','bidichecker'), | 36 os.path.join('third_party','bidichecker'), |
| 34 | 37 |
| 35 # Build files only, not third-party code. | 38 # Build files only, not third-party code. |
| 36 os.path.join('third_party','widevine'), | 39 os.path.join('third_party','widevine'), |
| 37 | 40 |
| 38 # Only binaries, used during development. | 41 # Only binaries, used during development. |
| 39 os.path.join('third_party','valgrind'), | 42 os.path.join('third_party','valgrind'), |
| 40 | 43 |
| 41 # Used for development and test, not in the shipping product. | 44 # Used for development and test, not in the shipping product. |
| 42 os.path.join('build','secondary'), | 45 os.path.join('build','secondary'), |
| 43 os.path.join('third_party','bison'), | 46 os.path.join('third_party','bison'), |
| 44 os.path.join('third_party','blanketjs'), | 47 os.path.join('third_party','blanketjs'), |
| 48 os.path.join('third_party','chromite'), |
| 45 os.path.join('third_party','cygwin'), | 49 os.path.join('third_party','cygwin'), |
| 46 os.path.join('third_party','gles2_conform'), | 50 os.path.join('third_party','gles2_conform'), |
| 47 os.path.join('third_party','gnu_binutils'), | 51 os.path.join('third_party','gnu_binutils'), |
| 48 os.path.join('third_party','gold'), | 52 os.path.join('third_party','gold'), |
| 49 os.path.join('third_party','gperf'), | 53 os.path.join('third_party','gperf'), |
| 54 os.path.join('third_party','jarjar'), |
| 50 os.path.join('third_party','kasko'), | 55 os.path.join('third_party','kasko'), |
| 51 os.path.join('third_party','lighttpd'), | 56 os.path.join('third_party','lighttpd'), |
| 52 os.path.join('third_party','llvm'), | 57 os.path.join('third_party','llvm'), |
| 53 os.path.join('third_party','llvm-build'), | 58 os.path.join('third_party','llvm-build'), |
| 54 os.path.join('third_party','mingw-w64'), | 59 os.path.join('third_party','mingw-w64'), |
| 55 os.path.join('third_party','nacl_sdk_binaries'), | 60 os.path.join('third_party','nacl_sdk_binaries'), |
| 56 os.path.join('third_party','pefile'), | 61 os.path.join('third_party','pefile'), |
| 57 os.path.join('third_party','perl'), | 62 os.path.join('third_party','perl'), |
| 58 os.path.join('third_party','psyco_win32'), | 63 os.path.join('third_party','psyco_win32'), |
| 64 os.path.join('third_party','pyelftools'), |
| 59 os.path.join('third_party','pylib'), | 65 os.path.join('third_party','pylib'), |
| 60 os.path.join('third_party','pywebsocket'), | 66 os.path.join('third_party','pywebsocket'), |
| 61 os.path.join('third_party','qunit'), | 67 os.path.join('third_party','qunit'), |
| 62 os.path.join('third_party','sinonjs'), | 68 os.path.join('third_party','sinonjs'), |
| 63 os.path.join('third_party','syzygy'), | 69 os.path.join('third_party','syzygy'), |
| 64 | 70 |
| 65 # Chromium code in third_party. | 71 # Chromium code in third_party. |
| 66 os.path.join('third_party','fuzzymatch'), | 72 os.path.join('third_party','fuzzymatch'), |
| 67 os.path.join('tools', 'swarming_client'), | 73 os.path.join('tools', 'swarming_client'), |
| 68 | 74 |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 if not GenerateCredits(args.file_template, args.entry_template, | 566 if not GenerateCredits(args.file_template, args.entry_template, |
| 561 args.output_file, args.target_os): | 567 args.output_file, args.target_os): |
| 562 return 1 | 568 return 1 |
| 563 else: | 569 else: |
| 564 print __doc__ | 570 print __doc__ |
| 565 return 1 | 571 return 1 |
| 566 | 572 |
| 567 | 573 |
| 568 if __name__ == '__main__': | 574 if __name__ == '__main__': |
| 569 sys.exit(main()) | 575 sys.exit(main()) |
| OLD | NEW |