1#!/usr/bin/python3 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 6import os 7import common 8from autotest_lib.client.bin import utils 9 10version = 1 11 12def 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 21pwd = os.getcwd() 22utils.update_version(os.path.join(pwd, 'src'), True, version, setup, pwd) 23