OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 import os | 3 import os |
| 4 import common |
4 import shutil | 5 import shutil |
5 from autotest_lib.client.bin import utils | 6 from autotest_lib.client.bin import utils |
6 | 7 |
7 version = 1 | 8 version = 1 |
8 | 9 |
9 def setup(topdir): | 10 def setup(topdir): |
10 srcdir = os.path.join(topdir, 'src') | 11 srcdir = os.path.join(topdir, 'src') |
11 | 12 |
12 os.chdir(srcdir) | 13 os.chdir(srcdir) |
13 | 14 |
14 utils.configure('--with-elfutils=elfutils ' \ | 15 utils.system('./configure --with-elfutils=elfutils ' \ |
15 '--prefix=%s/systemtap' % topdir) | 16 '--prefix=%s/systemtap' % topdir) |
16 utils.make('-j %d' % utils.count_cpus()) | 17 utils.system('make -j %d' % utils.count_cpus()) |
17 utils.make('install') | 18 utils.system('make install') |
18 | 19 |
19 os.chdir(topdir) | 20 os.chdir(topdir) |
20 | 21 |
21 pwd = os.getcwd() | 22 pwd = os.getcwd() |
22 utils.update_version(pwd+'/src', True, version, setup, pwd) | 23 utils.update_version(pwd+'/src', True, version, setup, pwd) |
OLD | NEW |