Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: tools/export_tarball/export_v8_tarball.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698