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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 ]) | 88 ]) |
89 | 89 |
90 # Directories we don't scan through. | 90 # Directories we don't scan through. |
91 PRUNE_DIRS = ('.svn', '.git', # VCS metadata | 91 PRUNE_DIRS = ('.svn', '.git', # VCS metadata |
92 'out', 'Debug', 'Release', # build files | 92 'out', 'Debug', 'Release', # build files |
93 'layout_tests') # lots of subdirs | 93 'layout_tests') # lots of subdirs |
94 | 94 |
95 ADDITIONAL_PATHS = ( | 95 ADDITIONAL_PATHS = ( |
96 os.path.join('googleurl'), | 96 os.path.join('googleurl'), |
97 os.path.join('native_client_sdk'), | 97 os.path.join('native_client_sdk'), |
| 98 os.path.join('ppapi'), |
98 # The directory with the word list for Chinese and Japanese segmentation | 99 # The directory with the word list for Chinese and Japanese segmentation |
99 # with different license terms than ICU. | 100 # with different license terms than ICU. |
100 os.path.join('third_party','icu','source','data','brkitr'), | 101 os.path.join('third_party','icu','source','data','brkitr'), |
101 # Fake directory so we can include the strongtalk license. | 102 # Fake directory so we can include the strongtalk license. |
102 os.path.join('v8', 'strongtalk'), | 103 os.path.join('v8', 'strongtalk'), |
103 ) | 104 ) |
104 | 105 |
105 | 106 |
106 # Directories where we check out directly from upstream, and therefore | 107 # Directories where we check out directly from upstream, and therefore |
107 # can't provide a README.chromium. Please prefer a README.chromium | 108 # can't provide a README.chromium. Please prefer a README.chromium |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 elif command == 'credits': | 391 elif command == 'credits': |
391 if not GenerateCredits(): | 392 if not GenerateCredits(): |
392 return 1 | 393 return 1 |
393 else: | 394 else: |
394 print __doc__ | 395 print __doc__ |
395 return 1 | 396 return 1 |
396 | 397 |
397 | 398 |
398 if __name__ == '__main__': | 399 if __name__ == '__main__': |
399 sys.exit(main()) | 400 sys.exit(main()) |
OLD | NEW |