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