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