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.
7 readonly SCRIPT_DIR
="$(dirname "$0")"
8 readonly SCRIPT_DIR_ABS
="$(cd "${SCRIPT_DIR}" ; pwd -P)"
9 readonly SDK_TOOLS
="${SCRIPT_DIR_ABS}/sdk_tools"
10 readonly SDK_TOOLS_UPDATE
="${SCRIPT_DIR_ABS}/sdk_tools_update"
12 if [[ -e "${SDK_TOOLS_UPDATE}" ]]; then
13 echo "Updating sdk_tools"
15 mv "${SDK_TOOLS_UPDATE}" "${SDK_TOOLS}"
18 export PYTHONPATH
="${SDK_TOOLS}"
19 python
"${SDK_TOOLS}/sdk_update.py" "$@"