Send a crash report when a hung process is detected.
[chromium-blink-merge.git] / native_client_sdk / src / build_tools / naclsdk
blob37dd1ed4c5908f66bae7425fa9033a6ac153c4c1
1 #!/bin/bash
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"
14 rm -rf "${SDK_TOOLS}"
15 mv "${SDK_TOOLS_UPDATE}" "${SDK_TOOLS}"
18 export PYTHONPATH="${SDK_TOOLS}"
19 python "${SDK_TOOLS}/sdk_update.py" "$@"