OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 import os | 3 import os, common |
4 from autotest_lib.client.bin import utils | 4 from autotest_lib.client.bin import utils |
5 | 5 |
6 version = 2 | 6 version = 2 |
7 | 7 |
8 def setup(srcdir, tarball='libcap-2.16.tar.gz'): | 8 def setup(srcdir, tarball='libcap-2.16.tar.gz'): |
9 topdir = os.getcwd() | 9 topdir = os.getcwd() |
10 utils.extract_tarball_to_dir(tarball, srcdir) | 10 utils.extract_tarball_to_dir(tarball, srcdir) |
11 os.chdir(srcdir) | 11 os.chdir(srcdir) |
12 utils.make('-C libcap LIBATTR=no') | 12 utils.system('make -C libcap LIBATTR=no') |
13 os.chdir(topdir) | 13 os.chdir(topdir) |
14 | 14 |
15 srcdir = os.path.abspath('./src') | 15 srcdir = os.path.abspath('./src') |
16 utils.update_version(srcdir, False, version, setup, srcdir) | 16 utils.update_version(srcdir, False, version, setup, srcdir) |
OLD | NEW |