1#!/bin/bash 2# 3# Copyright (c) 2011 The Chromium 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 7readonly SCRIPT_DIR="$(dirname "$0")" 8readonly SCRIPT_DIR_ABS="$(cd "${SCRIPT_DIR}" ; pwd -P)" 9readonly SDK_TOOLS="${SCRIPT_DIR_ABS}/sdk_tools" 10readonly SDK_TOOLS_UPDATE="${SCRIPT_DIR_ABS}/sdk_tools_update" 11 12if [[ -e "${SDK_TOOLS_UPDATE}" ]]; then 13 echo "Updating sdk_tools" 14 rm -rf "${SDK_TOOLS}" 15 mv "${SDK_TOOLS_UPDATE}" "${SDK_TOOLS}" 16fi 17 18export PYTHONPATH="${SDK_TOOLS}" 19python "${SDK_TOOLS}/sdk_update.py" "$@" 20