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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 # Chrome for Android proprietary code. | 78 # Chrome for Android proprietary code. |
79 os.path.join('clank'), | 79 os.path.join('clank'), |
80 | 80 |
81 # Redistribution does not require attribution in documentation. | 81 # Redistribution does not require attribution in documentation. |
82 os.path.join('third_party','directxsdk'), | 82 os.path.join('third_party','directxsdk'), |
83 os.path.join('third_party','platformsdk_win2008_6_1'), | 83 os.path.join('third_party','platformsdk_win2008_6_1'), |
84 os.path.join('third_party','platformsdk_win7'), | 84 os.path.join('third_party','platformsdk_win7'), |
85 | 85 |
86 # For testing only, presents on some bots. | 86 # For testing only, presents on some bots. |
87 os.path.join('isolate_deps_dir'), | 87 os.path.join('isolate_deps_dir'), |
| 88 |
| 89 # Overrides some WebRTC files, same license. Skip this one. |
| 90 os.path.join('third_party', 'webrtc_overrides'), |
88 ]) | 91 ]) |
89 | 92 |
90 # Directories we don't scan through. | 93 # Directories we don't scan through. |
91 VCS_METADATA_DIRS = ('.svn', '.git') | 94 VCS_METADATA_DIRS = ('.svn', '.git') |
92 PRUNE_DIRS = (VCS_METADATA_DIRS + | 95 PRUNE_DIRS = (VCS_METADATA_DIRS + |
93 ('out', 'Debug', 'Release', # build files | 96 ('out', 'Debug', 'Release', # build files |
94 'layout_tests')) # lots of subdirs | 97 'layout_tests')) # lots of subdirs |
95 | 98 |
96 ADDITIONAL_PATHS = ( | 99 ADDITIONAL_PATHS = ( |
97 os.path.join('breakpad'), | 100 os.path.join('breakpad'), |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 if not GenerateCredits(args.file_template, args.entry_template, | 495 if not GenerateCredits(args.file_template, args.entry_template, |
493 args.output_file): | 496 args.output_file): |
494 return 1 | 497 return 1 |
495 else: | 498 else: |
496 print __doc__ | 499 print __doc__ |
497 return 1 | 500 return 1 |
498 | 501 |
499 | 502 |
500 if __name__ == '__main__': | 503 if __name__ == '__main__': |
501 sys.exit(main()) | 504 sys.exit(main()) |
OLD | NEW |