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

Unified Diff: tools/create_debian_packages.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/copy_dart.py ('k') | tools/create_editor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_debian_packages.py
diff --git a/tools/create_debian_packages.py b/tools/create_debian_packages.py
index 3b344c69fbc4191ca8b17379a6509fd8ea65113a..1c754c474f29748a2e965db599346355bfa482d5 100755
--- a/tools/create_debian_packages.py
+++ b/tools/create_debian_packages.py
@@ -10,12 +10,10 @@
# binary packages.
import optparse
-import platform
import sys
import tarfile
import subprocess
import utils
-import os
from os.path import join, exists, abspath
from shutil import copyfile
@@ -67,17 +65,17 @@ def BuildDebianPackage(tarball, out_dir, arch):
# Build source package.
print "Building source package"
- RunBuildPackage(['-S', '-us', '-uc'], join(temp_dir, tarroot));
+ RunBuildPackage(['-S', '-us', '-uc'], join(temp_dir, tarroot))
# Build 32-bit binary package.
- if ('ia32' in arch):
+ if 'ia32' in arch:
print "Building i386 package"
- RunBuildPackage(['-B', '-ai386', '-us', '-uc'], join(temp_dir, tarroot));
+ RunBuildPackage(['-B', '-ai386', '-us', '-uc'], join(temp_dir, tarroot))
# Build 64-bit binary package.
- if ('x64' in arch):
+ if 'x64' in arch:
print "Building amd64 package"
- RunBuildPackage(['-B', '-aamd64', '-us', '-uc'], join(temp_dir, tarroot));
+ RunBuildPackage(['-B', '-aamd64', '-us', '-uc'], join(temp_dir, tarroot))
# Copy the Debian package files to the build directory.
debbase = 'dart_%s' % version
@@ -95,10 +93,10 @@ def BuildDebianPackage(tarball, out_dir, arch):
for name in source_package:
copyfile(join(temp_dir, name), join(out_dir, name))
- if ('ia32' in arch):
+ if 'ia32' in arch:
for name in i386_package:
copyfile(join(temp_dir, name), join(out_dir, name))
- if ('x64' in arch):
+ if 'x64' in arch:
for name in amd64_package:
copyfile(join(temp_dir, name), join(out_dir, name))
@@ -115,11 +113,11 @@ def Main():
arch = options.arch.split(',')
if not options.out_dir:
- out_dir = join(DART_DIR, utils.GetBuildDir(HOST_OS, HOST_OS))
+ out_dir = join(DART_DIR, utils.GetBuildDir(HOST_OS))
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())
BuildDebianPackage(tar_filename, out_dir, arch)
« no previous file with comments | « tools/copy_dart.py ('k') | tools/create_editor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698