Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: depot_tools/bootstrap/win/win_tools.bat

Issue 873002: Set bootstrap Python version to 2.6 (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 :: We are done. 71 :: We are done.
72 set ERRORLEVEL=0 72 set ERRORLEVEL=0
73 goto :END 73 goto :END
74 74
75 75
76 :PYTHON_INSTALL 76 :PYTHON_INSTALL
77 echo Installing python ... 77 echo Installing python ...
78 :: Cleanup python directory if it was existing. 78 :: Cleanup python directory if it was existing.
79 if exist "%WIN_TOOLS_ROOT_DIR%\python\." rd /q /s "%WIN_TOOLS_ROOT_DIR%\python" 79 if exist "%WIN_TOOLS_ROOT_DIR%\python\." rd /q /s "%WIN_TOOLS_ROOT_DIR%\python"
80 if exist "%WIN_TOOLS_ROOT_DIR%\python_bin\." rd /q /s "%WIN_TOOLS_ROOT_DIR%\pyth on_bin" 80 if exist "%WIN_TOOLS_ROOT_DIR%\python_bin\." rd /q /s "%WIN_TOOLS_ROOT_DIR%\pyth on_bin"
81 call svn co -q %WIN_TOOLS_ROOT_URL%/third_party/python "%WIN_TOOLS_ROOT_DIR%\pyt hon_bin" 81 call svn co -q %WIN_TOOLS_ROOT_URL%/third_party/python_26 "%WIN_TOOLS_ROOT_DIR%\ python_bin"
82 if errorlevel 1 goto :PYTHON_FAIL 82 if errorlevel 1 goto :PYTHON_FAIL
83 :: Create the batch file. 83 :: Create the batch file.
84 call copy /y "%~dp0python.new.bat" "%WIN_TOOLS_ROOT_DIR%\python.bat" 1>nul 84 call copy /y "%~dp0python.new.bat" "%WIN_TOOLS_ROOT_DIR%\python.bat" 1>nul
85 call copy /y "%~dp0python.new" "%WIN_TOOLS_ROOT_DIR%\python" 1>nul 85 call copy /y "%~dp0python.new" "%WIN_TOOLS_ROOT_DIR%\python" 1>nul
86 set ERRORLEVEL=0 86 set ERRORLEVEL=0
87 goto :END 87 goto :END
88 88
89 89
90 :PYTHON_FAIL 90 :PYTHON_FAIL
91 echo ... Failed to checkout python automatically. 91 echo ... Failed to checkout python automatically.
92 echo Please visit http://python.org to download the latest python 2.x client bef ore 92 echo Please visit http://python.org to download the latest python 2.x client bef ore
93 echo continuing. 93 echo continuing.
94 echo You can also get the "prebacked" version used at %WIN_TOOLS_ROOT_URL%/third _party/ 94 echo You can also get the "prebacked" version used at %WIN_TOOLS_ROOT_URL%/third _party/
95 set ERRORLEVEL=1 95 set ERRORLEVEL=1
96 goto :END 96 goto :END
97 97
98 98
99 :returncode 99 :returncode
100 set WIN_TOOLS_ROOT_URL= 100 set WIN_TOOLS_ROOT_URL=
101 set WIN_TOOLS_ROOT_DIR= 101 set WIN_TOOLS_ROOT_DIR=
102 exit /b %ERRORLEVEL% 102 exit /b %ERRORLEVEL%
103 103
104 :END 104 :END
105 call :returncode %ERRORLEVEL% 105 call :returncode %ERRORLEVEL%
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698