summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/build_tools/naclsdk
diff options
context:
space:
mode:
Diffstat (limited to 'native_client_sdk/src/build_tools/naclsdk')
-rwxr-xr-xnative_client_sdk/src/build_tools/naclsdk19
1 files changed, 19 insertions, 0 deletions
diff --git a/native_client_sdk/src/build_tools/naclsdk b/native_client_sdk/src/build_tools/naclsdk
new file mode 100755
index 0000000..dc48499
--- /dev/null
+++ b/native_client_sdk/src/build_tools/naclsdk
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# Copyright (c) 2011 The Native Client 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" "$@"