| 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 """ | 6 """ |
| 7 This tool creates a tarball with all the sources, but without .git directories. | 7 This tool creates a tarball with all the sources, but without .git directories. |
| 8 | 8 |
| 9 It can also remove files which are not strictly required for build, so that | 9 It can also remove files which are not strictly required for build, so that |
| 10 the resulting tarball can be reasonably small (last time it was ~110 MB). | 10 the resulting tarball can be reasonably small (last time it was ~110 MB). |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 'tools/gyp/test', | 45 'tools/gyp/test', |
| 46 'v8/test', | 46 'v8/test', |
| 47 ) | 47 ) |
| 48 | 48 |
| 49 ESSENTIAL_FILES = ( | 49 ESSENTIAL_FILES = ( |
| 50 'chrome/test/data/webui/i18n_process_css_test.html', | 50 'chrome/test/data/webui/i18n_process_css_test.html', |
| 51 ) | 51 ) |
| 52 | 52 |
| 53 TEST_DIRS = ( | 53 TEST_DIRS = ( |
| 54 'breakpad/src/processor/testdata', | 54 'breakpad/src/processor/testdata', |
| 55 'chrome/browser/resources/tracing/tests', | |
| 56 'chrome/test/data', | 55 'chrome/test/data', |
| 57 'content/test/data', | 56 'content/test/data', |
| 58 'courgette/testdata', | 57 'courgette/testdata', |
| 59 'media/test/data', | 58 'media/test/data', |
| 60 'native_client/src/trusted/service_runtime/testdata', | 59 'native_client/src/trusted/service_runtime/testdata', |
| 61 'net/data', | 60 'net/data', |
| 62 ) | 61 ) |
| 63 | 62 |
| 64 | 63 |
| 65 # Workaround lack of the exclude parameter in add method in python-2.4. | 64 # Workaround lack of the exclude parameter in add method in python-2.4. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 181 |
| 183 if rc != 0: | 182 if rc != 0: |
| 184 print 'xz -9 failed!' | 183 print 'xz -9 failed!' |
| 185 return 1 | 184 return 1 |
| 186 | 185 |
| 187 return 0 | 186 return 0 |
| 188 | 187 |
| 189 | 188 |
| 190 if __name__ == "__main__": | 189 if __name__ == "__main__": |
| 191 sys.exit(main(sys.argv[1:])) | 190 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |