summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/build_tools/naclsdk.bat
blob: ed247019a30a942e1c003813cc3f8ea147a9cde1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 %*