OLD | NEW |
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 version = 1 | 6 version = 1 |
8 | 7 |
9 def setup(tarball, topdir): | 8 def setup(tarball, topdir): |
10 srcdir = os.path.join(topdir, 'src') | 9 srcdir = os.path.join(topdir, 'src') |
11 utils.extract_tarball_to_dir(tarball, 'src') | 10 utils.extract_tarball_to_dir(tarball, 'src') |
12 os.chdir(srcdir) | 11 os.chdir(srcdir) |
13 utils.system ('./configure --prefix=%s/dejagnu' % topdir) | 12 utils.configure('--prefix=%s/dejagnu' % topdir) |
14 utils.system('make') | 13 utils.make() |
15 utils.system('make install') | 14 utils.make('install') |
16 | 15 |
17 os.chdir(topdir) | 16 os.chdir(topdir) |
18 | 17 |
19 pwd = os.getcwd() | 18 pwd = os.getcwd() |
20 # http://ftp.gnu.org/pub/gnu/dejagnu/dejagnu-1.4.4.tar.gz | 19 # http://ftp.gnu.org/pub/gnu/dejagnu/dejagnu-1.4.4.tar.gz |
21 tarball = os.path.join(pwd, 'dejagnu-1.4.4.tar.bz2') | 20 tarball = os.path.join(pwd, 'dejagnu-1.4.4.tar.bz2') |
22 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) | 21 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) |
OLD | NEW |