summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/build_tools/naclsdk.bat
diff options
context:
space:
mode:
Diffstat (limited to 'native_client_sdk/src/build_tools/naclsdk.bat')
-rwxr-xr-xnative_client_sdk/src/build_tools/naclsdk.bat24
1 files changed, 24 insertions, 0 deletions
diff --git a/native_client_sdk/src/build_tools/naclsdk.bat b/native_client_sdk/src/build_tools/naclsdk.bat
new file mode 100755
index 0000000..ed24701
--- /dev/null
+++ b/native_client_sdk/src/build_tools/naclsdk.bat
@@ -0,0 +1,24 @@
+@echo off
+
+:: 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.
+
+setlocal
+
+set SCRIPT_DIR=%~dp0
+set SDK_TOOLS=%SCRIPT_DIR%sdk_tools
+set SDK_TOOLS_UPDATE=%SCRIPT_DIR%sdk_tools_update
+set PYTHON_DIR=%SCRIPT_DIR%python
+
+if exist %SDK_TOOLS_UPDATE% (
+ echo Updating sdk_tools
+ if exist %SDK_TOOLS% (
+ rmdir /q/s %SDK_TOOLS%
+ )
+ move %SDK_TOOLS_UPDATE% %SDK_TOOLS%
+)
+
+set PYTHONPATH=%SCRIPT_DIR%
+
+python %SDK_TOOLS%\sdk_update.py %*