OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 V8 sources, but without .svn directories. | 7 This tool creates a tarball with V8 sources, but without .svn directories. |
8 | 8 |
9 This allows easy packaging of V8, synchronized with browser releases. | 9 This allows easy packaging of V8, synchronized with browser releases. |
10 | 10 |
11 Example usage: | 11 Example usage: |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 | 91 |
92 subprocess.check_call(["make", "dependencies"], cwd=v8_directory) | 92 subprocess.check_call(["make", "dependencies"], cwd=v8_directory) |
93 | 93 |
94 archive = MyTarFile.open(output_fullname, 'w:bz2') | 94 archive = MyTarFile.open(output_fullname, 'w:bz2') |
95 try: | 95 try: |
96 archive.add(v8_directory, arcname=output_basename) | 96 archive.add(v8_directory, arcname=output_basename) |
97 finally: | 97 finally: |
98 archive.close() | 98 archive.close() |
99 | 99 |
100 return 0 | 100 return 0 |
101 | 101 |
Alexander Potapenko
2011/11/24 07:53:02
2 blank lines.
| |
102 if __name__ == '__main__': | 102 if __name__ == '__main__': |
103 sys.exit(main(sys.argv[1:])) | 103 sys.exit(main(sys.argv[1:])) |
OLD | NEW |