@@ -80,7 +80,7 @@ if "%SKIPBUILD%" EQU "1" goto skipdoc
80
80
if " %SKIPDOC% " EQU " 1" goto skipdoc
81
81
82
82
call " %D% ..\..\doc\make.bat" htmlhelp
83
- if errorlevel 1 goto : eof
83
+ if errorlevel 1 exit /B %ERRORLEVEL%
84
84
:skipdoc
85
85
86
86
where dlltool /q && goto skipdlltoolsearch
@@ -93,16 +93,17 @@ set _DLLTOOL_PATH=
93
93
94
94
if defined BUILDX86 (
95
95
call :build x86
96
- if errorlevel 1 exit /B
96
+ if errorlevel 1 exit /B %ERRORLEVEL%
97
97
)
98
98
99
99
if defined BUILDX64 (
100
100
call :build x64 " %PGO% "
101
- if errorlevel 1 exit /B
101
+ if errorlevel 1 exit /B %ERRORLEVEL%
102
102
)
103
103
104
104
if defined TESTTARGETDIR (
105
105
call " %D% testrelease.bat" -t " %TESTTARGETDIR% "
106
+ if errorlevel 1 exit /B %ERRORLEVEL%
106
107
)
107
108
108
109
exit /B 0
@@ -128,19 +129,19 @@ if "%1" EQU "x86" (
128
129
if exist " %BUILD% en-us" (
129
130
echo Deleting %BUILD% en-us
130
131
rmdir /q/s " %BUILD% en-us"
131
- if errorlevel 1 exit /B
132
+ if errorlevel 1 exit /B %ERRORLEVEL%
132
133
)
133
134
134
135
if exist " %D% obj\Debug_%OBJDIR_PLAT% " (
135
136
echo Deleting " %D% obj\Debug_%OBJDIR_PLAT% "
136
137
rmdir /q/s " %D% obj\Debug_%OBJDIR_PLAT% "
137
- if errorlevel 1 exit /B
138
+ if errorlevel 1 exit /B %ERRORLEVEL%
138
139
)
139
140
140
141
if exist " %D% obj\Release_%OBJDIR_PLAT% " (
141
142
echo Deleting " %D% obj\Release_%OBJDIR_PLAT% "
142
143
rmdir /q/s " %D% obj\Release_%OBJDIR_PLAT% "
143
- if errorlevel 1 exit /B
144
+ if errorlevel 1 exit /B %ERRORLEVEL%
144
145
)
145
146
146
147
if not " %CERTNAME% " EQU " " (
@@ -156,41 +157,41 @@ if not "%PGO%" EQU "" (
156
157
if not " %SKIPBUILD% " EQU " 1" (
157
158
@ echo call " %PCBUILD% build.bat" -e -p %BUILD_PLAT% -t %TARGET% %PGOOPTS% %CERTOPTS%
158
159
@ call " %PCBUILD% build.bat" -e -p %BUILD_PLAT% -t %TARGET% %PGOOPTS% %CERTOPTS%
159
- @ if errorlevel 1 exit /B
160
+ @ if errorlevel 1 exit /B %ERRORLEVEL%
160
161
@ rem build.bat turns echo back on, so we disable it again
161
162
@ echo off
162
163
163
164
@ echo call " %PCBUILD% build.bat" -d -e -p %BUILD_PLAT% -t %TARGET%
164
165
@ call " %PCBUILD% build.bat" -d -e -p %BUILD_PLAT% -t %TARGET%
165
- @ if errorlevel 1 exit /B
166
+ @ if errorlevel 1 exit /B %ERRORLEVEL%
166
167
@ rem build.bat turns echo back on, so we disable it again
167
168
@ echo off
168
169
)
169
170
170
171
if " %OUTDIR_PLAT% " EQU " win32" (
171
172
%MSBUILD% " %D% launcher\launcher.wixproj" /p:Platform=x86 %CERTOPTS% /p:ReleaseUri=%RELEASE_URI%
172
- if errorlevel 1 exit /B
173
+ if errorlevel 1 exit /B %ERRORLEVEL%
173
174
) else if not exist " %Py_OutDir% win32\en-us\launcher.msi" (
174
175
%MSBUILD% " %D% launcher\launcher.wixproj" /p:Platform=x86 %CERTOPTS% /p:ReleaseUri=%RELEASE_URI%
175
- if errorlevel 1 exit /B
176
+ if errorlevel 1 exit /B %ERRORLEVEL%
176
177
)
177
178
178
179
set BUILDOPTS = /p:Platform=%1 /p:BuildForRelease=true /p:DownloadUrl=%DOWNLOAD_URL% /p:DownloadUrlBase=%DOWNLOAD_URL_BASE% /p:ReleaseUri=%RELEASE_URI%
179
180
if defined BUILDMSI (
180
181
%MSBUILD% " %D% bundle\releaselocal.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=true
181
- if errorlevel 1 exit /B
182
+ if errorlevel 1 exit /B %ERRORLEVEL%
182
183
%MSBUILD% " %D% bundle\releaseweb.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=false
183
- if errorlevel 1 exit /B
184
+ if errorlevel 1 exit /B %ERRORLEVEL%
184
185
)
185
186
186
187
if defined BUILDZIP (
187
188
%MSBUILD% " %D% make_zip.proj" /t:Build %BUILDOPTS% %CERTOPTS% /p:OutputPath=" %BUILD% en-us"
188
- if errorlevel 1 exit /B
189
+ if errorlevel 1 exit /B %ERRORLEVEL%
189
190
)
190
191
191
192
if defined BUILDNUGET (
192
193
%MSBUILD% " %D% ..\nuget\make_pkg.proj" /t:Build /p:Configuration=Release /p:Platform=%1 /p:OutputPath=" %BUILD% en-us"
193
- if errorlevel 1 exit /B
194
+ if errorlevel 1 exit /B %ERRORLEVEL%
194
195
)
195
196
196
197
if not " %OUTDIR% " EQU " " (
0 commit comments