OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/python |
| 2 |
| 3 import os |
| 4 import common |
| 5 from autotest_lib.client.bin import utils |
| 6 |
| 7 version = 1 |
| 8 |
| 9 def setup(tarball, topdir): |
| 10 srcdir = os.path.join(topdir, 'src') |
| 11 utils.extract_tarball_to_dir(tarball, srcdir) |
| 12 os.chdir(srcdir) |
| 13 utils.system('make') |
| 14 utils.system('make binprefix=%s manprefix=%s install' % (topdir, topdir)) |
| 15 os.chdir(topdir) |
| 16 |
| 17 |
| 18 # The source is grabbed from |
| 19 # http://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.27.tar.gz |
| 20 pwd = os.getcwd() |
| 21 tarball = os.path.join(pwd, 'hdparm-9.27.tar.gz') |
| 22 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) |
OLD | NEW |