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

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

Issue 3541002: Revert "Merge remote branch 'cros/upstream' into tempbranch2" (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/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
4 from autotest_lib.client.bin import utils 5 from autotest_lib.client.bin import utils
5 6
6 # To use this, you have to set PERL5LIB to: 7 # To use this, you have to set PERL5LIB to:
7 # autodir+'deps/boottool/lib/perl' 8 # autodir+'deps/boottool/lib/perl'
8 # or on Ubuntu we also need 9 # or on Ubuntu we also need
9 # autodir+'deps/boottool/share/perl' 10 # autodir+'deps/boottool/share/perl'
10 # because it uses nonstandard locations 11 # because it uses nonstandard locations
11 12
12 version = 1 13 version = 1
13 14
14 def setup(tarball, topdir): 15 def setup(tarball, topdir):
15 srcdir = os.path.join(topdir, 'src') 16 srcdir = os.path.join(topdir, 'src')
16 utils.extract_tarball_to_dir(tarball, srcdir) 17 utils.extract_tarball_to_dir(tarball, srcdir)
17 os.chdir(srcdir) 18 os.chdir(srcdir)
18 utils.system('perl Makefile.PL PREFIX=' + topdir) 19 utils.system ('perl Makefile.PL PREFIX=' + topdir)
19 utils.make() 20 utils.system ('make')
20 utils.make('install') 21 utils.system ('make install')
21 os.chdir(topdir) 22 os.chdir(topdir)
22 23
23 24
24 pwd = os.getcwd() 25 pwd = os.getcwd()
25 tarball = os.path.join(pwd, 'Linux-Bootloader-1.2.tar.gz') 26 tarball = os.path.join(pwd, 'Linux-Bootloader-1.2.tar.gz')
26 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) 27 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