| OLD | NEW | 
|   1 @echo off |   1 @echo off | 
|   2 :: Copyright (c) 2009 The Chromium Authors. All rights reserved. |   2 :: Copyright (c) 2009 The Chromium Authors. All rights reserved. | 
|   3 :: Use of this source code is governed by a BSD-style license that can be |   3 :: Use of this source code is governed by a BSD-style license that can be | 
|   4 :: found in the LICENSE file. |   4 :: found in the LICENSE file. | 
|   5  |   5  | 
|   6 :: This script will try to find if svn and python are accessible and it not, |   6 :: This script will try to find if svn and python are accessible and it not, | 
|   7 :: it will try to download it and 'install' it in depot_tools. |   7 :: it will try to download it and 'install' it in depot_tools. | 
|   8  |   8  | 
|   9 :: Sadly, we can't use SETLOCAL here otherwise it ERRORLEVEL is not correctly |   9 :: Sadly, we can't use SETLOCAL here otherwise it ERRORLEVEL is not correctly | 
|  10 :: returned. |  10 :: returned. | 
|  11  |  11  | 
|  12 set WIN_TOOLS_ROOT_URL=http://src.chromium.org/svn/trunk/tools |  12 set WIN_TOOLS_ROOT_URL=http://src.chromium.org/svn/trunk/tools | 
|  13 set WIN_TOOLS_ROOT_DIR=%~dp0..\.. |  13 set WIN_TOOLS_ROOT_DIR=%~dp0..\.. | 
|  14  |  14  | 
|  15 :SVN_CHECK |  15 :SVN_CHECK | 
|  16 :: If the batch file exists, skip the svn check. |  16 :: If the batch file exists, skip the svn check. | 
|  17 if exist "%WIN_TOOLS_ROOT_DIR%\svn.bat" goto :PYTHON_CHECK |  17 if exist "%WIN_TOOLS_ROOT_DIR%\svn.bat" goto :PYTHON_CHECK | 
|  18 call svn --version 2>nul 1>nul |  18 call svn --version 2>nul 1>nul | 
|  19 if errorlevel 1 goto :SVN_INSTALL |  19 if errorlevel 1 goto :SVN_INSTALL | 
|  20 goto :PYTHON_CHECK |  20 goto :PYTHON_CHECK | 
|  21  |  21  | 
|  22  |  22  | 
|  23 :SVN_INSTALL |  23 :SVN_INSTALL | 
|  24 echo Installing subversion ... |  24 echo Installing subversion ... | 
|  25 :: svn is not accessible; check it out and create 'proxy' files. |  25 :: svn is not accessible; check it out and create 'proxy' files. | 
|  26 if exist "%~dp0svn.7z" del "%~dp0svn.7z" |  26 if exist "%~dp0svn.7z" del "%~dp0svn.7z" | 
|  27 call "%~dp0wget" -q %WIN_TOOLS_ROOT_URL%/third_party/svn_win_client.7z -O "%~dp0
    svn.7z" |  27 cscript //nologo "%~dp0get_file.js" %WIN_TOOLS_ROOT_URL%/third_party/svn_win_cli
    ent.7z "%~dp0svn.7z" | 
|  28 if errorlevel 1 goto :SVN_FAIL |  28 if errorlevel 1 goto :SVN_FAIL | 
|  29 echo call "%~dp07za" x -y "%~dp0svn.7z" -o"%WIN_TOOLS_ROOT_DIR%" 1>nul |  29 echo call "%~dp07za" x -y "%~dp0svn.7z" -o"%WIN_TOOLS_ROOT_DIR%" 1>nul | 
|  30 call "%~dp07za" x -y "%~dp0svn.7z" -o"%WIN_TOOLS_ROOT_DIR%" 1>nul |  30 call "%~dp07za" x -y "%~dp0svn.7z" -o"%WIN_TOOLS_ROOT_DIR%" 1>nul | 
|  31 if errorlevel 1 goto :SVN_FAIL |  31 if errorlevel 1 goto :SVN_FAIL | 
|  32 if not exist "%WIN_TOOLS_ROOT_DIR%\svn\." goto :SVN_FAIL |  32 if not exist "%WIN_TOOLS_ROOT_DIR%\svn\." goto :SVN_FAIL | 
|  33 del "%~dp0svn.7z" |  33 del "%~dp0svn.7z" | 
|  34 :: Create the batch file. |  34 :: Create the batch file. | 
|  35 call copy /y "%~dp0svn.bat" "%WIN_TOOLS_ROOT_DIR%\svn.bat" 1>nul |  35 call copy /y "%~dp0svn.bat" "%WIN_TOOLS_ROOT_DIR%\svn.bat" 1>nul | 
|  36 goto :PYTHON_CHECK |  36 goto :PYTHON_CHECK | 
|  37  |  37  | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  76 goto :END |  76 goto :END | 
|  77  |  77  | 
|  78  |  78  | 
|  79 :returncode |  79 :returncode | 
|  80 set WIN_TOOLS_ROOT_URL= |  80 set WIN_TOOLS_ROOT_URL= | 
|  81 set WIN_TOOLS_ROOT_DIR= |  81 set WIN_TOOLS_ROOT_DIR= | 
|  82 exit /b %ERRORLEVEL% |  82 exit /b %ERRORLEVEL% | 
|  83  |  83  | 
|  84 :END |  84 :END | 
|  85 call :returncode %ERRORLEVEL% |  85 call :returncode %ERRORLEVEL% | 
| OLD | NEW |