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

Side by Side Diff: client/deps/boottool/boottool.py

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/common_lib/utils_unittest.py ('k') | client/deps/boottool/common.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 import os 3 import os
4 import common
5 from autotest_lib.client.bin import utils 4 from autotest_lib.client.bin import utils
6 5
7 # To use this, you have to set PERL5LIB to: 6 # To use this, you have to set PERL5LIB to:
8 # autodir+'deps/boottool/lib/perl' 7 # autodir+'deps/boottool/lib/perl'
9 # or on Ubuntu we also need 8 # or on Ubuntu we also need
10 # autodir+'deps/boottool/share/perl' 9 # autodir+'deps/boottool/share/perl'
11 # because it uses nonstandard locations 10 # because it uses nonstandard locations
12 11
13 version = 1 12 version = 1
14 13
15 def setup(tarball, topdir): 14 def setup(tarball, topdir):
16 srcdir = os.path.join(topdir, 'src') 15 srcdir = os.path.join(topdir, 'src')
17 utils.extract_tarball_to_dir(tarball, srcdir) 16 utils.extract_tarball_to_dir(tarball, srcdir)
18 os.chdir(srcdir) 17 os.chdir(srcdir)
19 utils.system ('perl Makefile.PL PREFIX=' + topdir) 18 utils.system('perl Makefile.PL PREFIX=' + topdir)
20 utils.system ('make') 19 utils.make()
21 utils.system ('make install') 20 utils.make('install')
22 os.chdir(topdir) 21 os.chdir(topdir)
23 22
24 23
25 pwd = os.getcwd() 24 pwd = os.getcwd()
26 tarball = os.path.join(pwd, 'Linux-Bootloader-1.2.tar.gz') 25 tarball = os.path.join(pwd, 'Linux-Bootloader-1.2.tar.gz')
27 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) 26 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)
OLDNEW
« no previous file with comments | « client/common_lib/utils_unittest.py ('k') | client/deps/boottool/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698