Home | History | Annotate | Download | only in build_tools
      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 
      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"
     11 
     12 if [[ -e "${SDK_TOOLS_UPDATE}" ]]; then
     13   echo "Updating sdk_tools"
     14   rm -rf "${SDK_TOOLS}"
     15   mv "${SDK_TOOLS_UPDATE}" "${SDK_TOOLS}"
     16 fi
     17 
     18 export PYTHONPATH="${SDK_TOOLS}"
     19 python "${SDK_TOOLS}/sdk_update.py" "$@"
     20