| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 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 .svn directories. | 7 This tool creates a tarball with all the sources, but without .svn 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 14 matching lines...) Expand all Loading... |
| 25 'chrome/test/data', | 25 'chrome/test/data', |
| 26 'chrome/tools/test/reference_build', | 26 'chrome/tools/test/reference_build', |
| 27 'data', | 27 'data', |
| 28 'gears/binaries', | 28 'gears/binaries', |
| 29 'native_client/src/trusted/service_runtime/testdata', | 29 'native_client/src/trusted/service_runtime/testdata', |
| 30 'native_client/tests', | 30 'native_client/tests', |
| 31 'net/data/cache_tests', | 31 'net/data/cache_tests', |
| 32 'src/chrome/test/data', | 32 'src/chrome/test/data', |
| 33 'o3d/documentation', | 33 'o3d/documentation', |
| 34 'o3d/samples', | 34 'o3d/samples', |
| 35 'third_party/hunspell_dictionaries', |
| 35 'third_party/lighttpd', | 36 'third_party/lighttpd', |
| 36 'third_party/vc_80', | 37 'third_party/vc_80', |
| 37 'third_party/WebKit/LayoutTests', | 38 'third_party/WebKit/LayoutTests', |
| 38 'webkit/data/layout_tests', | 39 'webkit/data/layout_tests', |
| 39 'webkit/tools/test/reference_build', | 40 'webkit/tools/test/reference_build', |
| 40 ) | 41 ) |
| 41 | 42 |
| 42 def GetSourceDirectory(): | 43 def GetSourceDirectory(): |
| 43 return os.path.realpath( | 44 return os.path.realpath( |
| 44 os.path.join(os.path.dirname(__file__), '..', '..', '..', 'src')) | 45 os.path.join(os.path.dirname(__file__), '..', '..', '..', 'src')) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 archive.set_remove_nonessential_files(options.remove_nonessential_files) | 87 archive.set_remove_nonessential_files(options.remove_nonessential_files) |
| 87 try: | 88 try: |
| 88 archive.add(GetSourceDirectory(), arcname=output_basename) | 89 archive.add(GetSourceDirectory(), arcname=output_basename) |
| 89 finally: | 90 finally: |
| 90 archive.close() | 91 archive.close() |
| 91 | 92 |
| 92 return 0 | 93 return 0 |
| 93 | 94 |
| 94 if __name__ == "__main__": | 95 if __name__ == "__main__": |
| 95 sys.exit(main(sys.argv[1:])) | 96 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |