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

Unified Diff: tools/create_tarball.py

Issue 350483003: Build Tools Cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: more fixes as reviewed by ricow Created 6 years, 6 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_sdk.py ('k') | tools/create_windows_installer.py » ('j') | 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 1604ef715f78221b458e77dfd3e00974396d83af..66479ddd8d13c5dc98cd4a4ee192aa671b8d2ad6 100755
--- a/tools/create_tarball.py
+++ b/tools/create_tarball.py
@@ -25,10 +25,11 @@ import datetime
import optparse
import sys
import tarfile
+from os import listdir
+from os.path import join, split, abspath
+
import utils
-from os import listdir, makedirs
-from os.path import join, exists, split, dirname, abspath
HOST_OS = utils.GuessOS()
DART_DIR = abspath(join(__file__, '..', '..'))
@@ -115,7 +116,7 @@ def CreateTarball(tarfilename):
debian_dir = 'tools/linux_dist_support/debian'
# Don't include the build directory in the tarball (ignored paths
# are relative to DART_DIR).
- builddir = utils.GetBuildDir(HOST_OS, HOST_OS)
+ builddir = utils.GetBuildDir(HOST_OS)
ignoredPaths.append(builddir)
print 'Creating tarball: %s' % tarfilename
@@ -128,9 +129,9 @@ def CreateTarball(tarfilename):
with utils.TempDir() as temp_dir:
# Generate and add debian/copyright
- copyright = join(temp_dir, 'copyright')
- GenerateCopyright(copyright)
- tar.add(copyright, arcname='%s/debian/copyright' % versiondir)
+ copyright_file = join(temp_dir, 'copyright')
+ GenerateCopyright(copyright_file)
+ tar.add(copyright_file, arcname='%s/debian/copyright' % versiondir)
# Generate and add debian/changelog
change_log = join(temp_dir, 'changelog')
@@ -158,7 +159,7 @@ def Main():
tar_filename = options.tar_filename
if not tar_filename:
tar_filename = join(DART_DIR,
- utils.GetBuildDir(HOST_OS, HOST_OS),
+ utils.GetBuildDir(HOST_OS),
'dart-%s.tar.gz' % utils.GetVersion())
CreateTarball(tar_filename)
« no previous file with comments | « tools/create_sdk.py ('k') | tools/create_windows_installer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698