blob: 990ea31eea56668ce52e6d7864bd5e7df8eb3fba [file] [log] [blame]
[email protected]e6c00f32012-04-13 15:39:491@echo off
2:: Copyright (c) 2012 The Chromium Authors. All rights reserved.
3:: Use of this source code is governed by a BSD-style license that can be
4:: found in the LICENSE file.
5
6:: This batch file will try to sync the root directory.
7
8setlocal
9
10:: Will download svn and python.
11:: If you don't want to install the depot_tools version of these tools, remove
12:: the 'force' option on the next command. The tools will be installed only if
13:: not already in the PATH environment variable.
14call "%~dp0bootstrap\win\win_tools.bat" force
15if errorlevel 1 goto :EOF
16
17:: Shall skip automatic update?
18IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF
19
20:: We need either .\.svn\. or .\.git\. to be able to sync.
21IF EXIST "%~dp0.svn\." GOTO :SVN_UPDATE
22IF EXIST "%~dp0.git\." GOTO :GIT_UPDATE
23echo Error updating depot_tools, no revision tool found.
24goto :EOF
25
26
27:SVN_UPDATE
28call svn up -q "%~dp0."
29goto :EOF
30
31
32:GIT_UPDATE
33cd /d "%~dp0."
34call git svn rebase -q -q
35goto :EOF