Changeset View
Changeset View
Standalone View
Standalone View
app/windows/kdevelop-msvc.bat
1 | @echo off | 1 | @echo off | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | setlocal enabledelayedexpansion | 3 | setlocal enabledelayedexpansion | ||
4 | setlocal enableextensions | 4 | setlocal enableextensions | ||
5 | 5 | | |||
6 | REM Check for newest VS (2017) too. These variables are defined if the script is run from Developer Command Prompt | 6 | REM load Visual Studio 2017 developer command prompt if VS150COMNTOOLS isn't set. Read Windows registry in case VS is not istalled on C:\ | ||
7 | IF NOT DEFINED VS150COMNTOOLS ( | 7 | for /f "usebackq tokens=3*" %%a in (`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7" /s`) do ( | ||
8 | REM load Visual Studio 2017 developer command prompt if VS150COMNTOOLS is not set. It's ugly and hardcoded too. | 8 | set vs15_path=%%a %%b | ||
mwolff: could you please undo the whitespace changes and re-upload the minimal diff? | |||||
is vs15 visual studio 2017? I'm always confused by the versioning scheme of visual studio :D mwolff: is vs15 visual studio 2017? I'm always confused by the versioning scheme of visual studio :D | |||||
Petross404: Yeah, I know. VS 2017 = VS15 and VS 2015 = VS14. | |||||
9 | for %%n in (Enterprise Professional Community BuildTools) do ( | 9 | if exist "!vs15_path!Common7\Tools\VsDevCmd.bat" ( | ||
10 | set "p=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\%%n\Common7\Tools\" | 10 | set "VS150COMNTOOLS=!vs15_path!Common7\Tools\" | ||
11 | if exist "!p!\VsDevCmd.bat" ( | | |||
12 | set "VS150COMNTOOLS=!p!" | | |||
13 | goto :end | 11 | goto :end | ||
14 | ) | 12 | ) | ||
15 | ) | 13 | ) | ||
16 | ) | 14 | ) | ||
17 | :end | 15 | :end | ||
18 | 16 | | |||
19 | set base= | 17 | set base= | ||
20 | if DEFINED VS150COMNTOOLS ( | 18 | if DEFINED VS150COMNTOOLS ( | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |
could you please undo the whitespace changes and re-upload the minimal diff?