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

Unified Diff: tools/create_tarball.py

Issue 208393003: Add default tar file name for source tarball (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/create_debian_packages.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_tarball.py
diff --git a/tools/create_tarball.py b/tools/create_tarball.py
index 58679e0d7650c82b921d19c7836c0148ded2737e..1604ef715f78221b458e77dfd3e00974396d83af 100755
--- a/tools/create_tarball.py
+++ b/tools/create_tarball.py
@@ -155,10 +155,13 @@ def Main():
global verbose
verbose = True
- if not options.tar_filename:
- raise Exception('Please specify an output filename')
+ tar_filename = options.tar_filename
+ if not tar_filename:
+ tar_filename = join(DART_DIR,
+ utils.GetBuildDir(HOST_OS, HOST_OS),
+ 'dart-%s.tar.gz' % utils.GetVersion())
- CreateTarball(options.tar_filename)
+ CreateTarball(tar_filename)
if __name__ == '__main__':
sys.exit(Main())
« no previous file with comments | « tools/create_debian_packages.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698