1 #!/usr/bin/python 2 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 6 import os 7 import common 8 from autotest_lib.client.bin import utils 9 10 version = 1 11 12 def setup(topdir): 13 srcdir = os.path.join(topdir, 'src') 14 15 # Build lansim 16 os.chdir(srcdir) 17 utils.make() 18 utils.system('make install') 19 os.chdir(topdir) 20 21 pwd = os.getcwd() 22 utils.update_version(os.path.join(pwd, 'src'), True, version, setup, pwd) 23