-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUpgradeAll.cmd
41 lines (35 loc) · 940 Bytes
/
UpgradeAll.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
rem ************************************************************
rem
rem Script to upgrade all VC++ Project files to a newer version
rem of Visual C++.
rem
rem NB: You must set the environment variables first by running
rem the SetVars script.
rem
rem ************************************************************
setlocal enabledelayedexpansion
:handle_help_request
if /i "%~1" == "-?" call :usage & exit /b 0
if /i "%~1" == "--help" call :usage & exit /b 0
:verify_toolchain
if /i "%TOOLCHAIN%" == "" (
echo ERROR: Compiler environment variables not set. Run 'SetVars' first.
exit /b 1
)
:upgrade_solutions
for /r %%i in (*.sln) do (
call %~dp0Upgrade.cmd %%i
if errorlevel 1 exit /b 1
)
:success
exit /b 0
rem ************************************************************
rem Functions
rem ************************************************************
:usage
echo.
echo Usage: %~n0
echo.
echo e.g. %~n0
goto :eof