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

Unified Diff: chrome-update.bat

Issue 306031: Rewrite chrome-update.py and .bat.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome-update.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome-update.bat
===================================================================
--- chrome-update.bat (revision 32063)
+++ chrome-update.bat (working copy)
@@ -1,34 +1,5 @@
@echo off
-
-:: This batch file assumes that the correct version of python can be found in
-:: the current directory, and that you have Visual Studio 8 installed in the
-:: default location. It will try to find Visual Studio in the default
-:: installation paths for x86 and x64 versions of windows as well as through
-:: the PATH environment variable.
-
setlocal
-IF EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio 8\VC\bin\vcvars32.bat" (
- CALL "%ProgramFiles(x86)%\Microsoft Visual Studio 8\VC\bin\vcvars32.bat"
-) ELSE IF EXIST "%ProgramFiles%\Microsoft Visual Studio 8\VC\bin\vcvars32.bat" (
- CALL "%ProgramFiles%\Microsoft Visual Studio 8\VC\bin\vcvars32.bat"
-) ELSE (
- :: See "HELP CALL" for information on how to use %~$PATH:1 to find a file in
- :: the PATH.
- CALL :FIND_IN_PATH "vcvars32.bat"
-)
-
-:: If vcvasr32.bat cannot be found or there was a problem, stop execution.
-IF %ERRORLEVEL%==1 GOTO :EOF
-python "%~dp0chrome-update.py" %*
-GOTO :EOF
-
-:FIND_IN_PATH
- :: %~$PATH:1 works like "which" on linux; use it to see if the file exists and
- :: call it if found. If it cannot be found print an error and set errorlevel
- IF EXIST "%~$PATH:1" (
- CALL "%~$PATH:1"
- ) ELSE (
- ECHO Cannot find vcvars32.bat! (Do you have Visual Studio in your PATH?)
- SET ERRORLEVEL=1
- )
- GOTO :EOF
+:: This is required with cygwin only.
+PATH=%~dp0;%PATH%
+call python "%~dp0chrome-update.py" %*
« no previous file with comments | « no previous file | chrome-update.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698