summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/build_tools/naclsdk
blob: 37dd1ed4c5908f66bae7425fa9033a6ac153c4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

readonly SCRIPT_DIR="$(dirname "$0")"
readonly SCRIPT_DIR_ABS="$(cd "${SCRIPT_DIR}" ; pwd -P)"
readonly SDK_TOOLS="${SCRIPT_DIR_ABS}/sdk_tools"
readonly SDK_TOOLS_UPDATE="${SCRIPT_DIR_ABS}/sdk_tools_update"

if [[ -e "${SDK_TOOLS_UPDATE}" ]]; then
  echo "Updating sdk_tools"
  rm -rf "${SDK_TOOLS}"
  mv "${SDK_TOOLS_UPDATE}" "${SDK_TOOLS}"
fi

export PYTHONPATH="${SDK_TOOLS}"
python "${SDK_TOOLS}/sdk_update.py" "$@"