| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/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 """Checks third-party licenses for the purposes of the Android WebView build. | 6 """Checks third-party licenses for the purposes of the Android WebView build. |
| 7 | 7 |
| 8 The Android tree includes a snapshot of Chromium in order to power the system | 8 The Android tree includes a snapshot of Chromium in order to power the system |
| 9 WebView. This tool checks that all code uses open-source licenses compatible | 9 WebView. This tool checks that all code uses open-source licenses compatible |
| 10 with Android, and that we meet the requirements of those licenses. It can also | 10 with Android, and that we meet the requirements of those licenses. It can also |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 # Using a common pattern for third-partyies makes the ignore regexp shorter | 112 # Using a common pattern for third-partyies makes the ignore regexp shorter |
| 113 excluded_dirs_list.append('third_party') | 113 excluded_dirs_list.append('third_party') |
| 114 # VCS dirs | 114 # VCS dirs |
| 115 excluded_dirs_list.append('.git') | 115 excluded_dirs_list.append('.git') |
| 116 excluded_dirs_list.append('.svn') | 116 excluded_dirs_list.append('.svn') |
| 117 # Build output | 117 # Build output |
| 118 excluded_dirs_list.append('out/Debug') | 118 excluded_dirs_list.append('out/Debug') |
| 119 excluded_dirs_list.append('out/Release') | 119 excluded_dirs_list.append('out/Release') |
| 120 # 'Copyright' appears in license agreements | 120 # 'Copyright' appears in license agreements |
| 121 excluded_dirs_list.append('chrome/app/resources') | 121 excluded_dirs_list.append('chrome/app/resources') |
| 122 # Quickoffice js files from internal src used on buildbots |
| 123 excluded_dirs_list.append('chrome/browser/resources/chromeos/quickoffice') |
| 122 # This is a test output directory | 124 # This is a test output directory |
| 123 excluded_dirs_list.append('chrome/tools/test/reference_build') | 125 excluded_dirs_list.append('chrome/tools/test/reference_build') |
| 124 # blink style copy right headers. | 126 # blink style copy right headers. |
| 125 excluded_dirs_list.append('content/shell/renderer/test_runner') | 127 excluded_dirs_list.append('content/shell/renderer/test_runner') |
| 126 # blink style copy right headers. | 128 # blink style copy right headers. |
| 127 excluded_dirs_list.append('content/shell/tools/plugin') | 129 excluded_dirs_list.append('content/shell/tools/plugin') |
| 128 # This is tests directory, doesn't exist in the snapshot | 130 # This is tests directory, doesn't exist in the snapshot |
| 129 excluded_dirs_list.append('content/test/data') | 131 excluded_dirs_list.append('content/test/data') |
| 130 # This is a tests directory that doesn't exist in the shipped product. | 132 # This is a tests directory that doesn't exist in the shipped product. |
| 131 excluded_dirs_list.append('gin/test') | 133 excluded_dirs_list.append('gin/test') |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 print ("Incompatibly licensed directories found:\n" + | 324 print ("Incompatibly licensed directories found:\n" + |
| 323 "\n".join(sorted(incompatible_directories))) | 325 "\n".join(sorted(incompatible_directories))) |
| 324 return ScanResult.Errors | 326 return ScanResult.Errors |
| 325 return ScanResult.Ok | 327 return ScanResult.Ok |
| 326 | 328 |
| 327 parser.print_help() | 329 parser.print_help() |
| 328 return ScanResult.Errors | 330 return ScanResult.Errors |
| 329 | 331 |
| 330 if __name__ == '__main__': | 332 if __name__ == '__main__': |
| 331 sys.exit(main()) | 333 sys.exit(main()) |
| OLD | NEW |