OLD | NEW |
1 @echo off | 1 @echo off |
2 :: Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 determine if python, git, or svn binaries need updates. It | 6 :: This script will determine if python, git, or svn binaries need updates. It |
7 :: returns 123 if the user's shell must restart, otherwise !0 is failure | 7 :: returns 123 if the user's shell must restart, otherwise !0 is failure |
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 :SYNC_GIT_HELP_FILES | 150 :SYNC_GIT_HELP_FILES |
151 :: Copy all the depot_tools docs into the mingw64 git docs root. | 151 :: Copy all the depot_tools docs into the mingw64 git docs root. |
152 :: /i : Make sure xcopy knows that the destination names a folder, not a file | 152 :: /i : Make sure xcopy knows that the destination names a folder, not a file |
153 :: /q : Make xcopy quiet (though it still prints a `X File(s) copied` message | 153 :: /q : Make xcopy quiet (though it still prints a `X File(s) copied` message |
154 :: which is why we have the > NUL) | 154 :: which is why we have the > NUL) |
155 :: /d : Copy source files that are newer than the corresponding destination | 155 :: /d : Copy source files that are newer than the corresponding destination |
156 :: files only. This prevents excessive copying when none of the docs | 156 :: files only. This prevents excessive copying when none of the docs |
157 :: actually changed. | 157 :: actually changed. |
158 :: /y : Don't prompt for overwrites (yes) | 158 :: /y : Don't prompt for overwrites (yes) |
159 xcopy /i /q /d /y "%WIN_TOOLS_ROOT_DIR%\man\html\*" "%GIT_INST_DIR%\mingw64\shar
e\doc\git-doc" > NUL | 159 xcopy /i /q /d /y "%WIN_TOOLS_ROOT_DIR%\man\html\*" "%GIT_INST_DIR%\mingw%OS_BIT
S%\share\doc\git-doc" > NUL |
160 | 160 |
161 :: MSYS users need to restart their shell. | 161 :: MSYS users need to restart their shell. |
162 if defined MSYSTEM if defined DID_UPGRADE ( | 162 if defined MSYSTEM if defined DID_UPGRADE ( |
163 echo. | 163 echo. |
164 echo. | 164 echo. |
165 echo [1;31mIMPORTANT:[0m | 165 echo [1;31mIMPORTANT:[0m |
166 echo depot_tools' git distribution has been updated while inside of a MinGW | 166 echo depot_tools' git distribution has been updated while inside of a MinGW |
167 echo shell. In order to complete the upgrade, please exit the shell and re-run | 167 echo shell. In order to complete the upgrade, please exit the shell and re-run |
168 echo `git bash` from cmd. | 168 echo `git bash` from cmd. |
169 exit 123 | 169 exit 123 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 goto :END | 215 goto :END |
216 | 216 |
217 | 217 |
218 :returncode | 218 :returncode |
219 set WIN_TOOLS_ROOT_URL= | 219 set WIN_TOOLS_ROOT_URL= |
220 set WIN_TOOLS_ROOT_DIR= | 220 set WIN_TOOLS_ROOT_DIR= |
221 exit /b %ERRORLEVEL% | 221 exit /b %ERRORLEVEL% |
222 | 222 |
223 :END | 223 :END |
224 call :returncode %ERRORLEVEL% | 224 call :returncode %ERRORLEVEL% |
OLD | NEW |