diff --git a/build_web_debug.bat b/build_web_debug.bat index 67cb81a..0de78bf 100644 --- a/build_web_debug.bat +++ b/build_web_debug.bat @@ -1,5 +1,7 @@ @echo off +pushd %~dp0% + rmdir /S /q build_web mkdir build_web @@ -23,8 +25,10 @@ if "%1" == "NO_VALIDATION" ( echo If you want to turn graphics validation off to make web debug build faster, provide a command line argument called "NO_VALIDATION" to this build script ) -goto :EOF +goto :success :error echo Failed to build +:success +popd exit /B %ERRORLEVEL% diff --git a/build_web_release.bat b/build_web_release.bat index edfc435..301ac74 100644 --- a/build_web_release.bat +++ b/build_web_release.bat @@ -1,5 +1,7 @@ @echo off +pushd %~dp0% + rmdir /S /q build_web_release mkdir build_web_release @@ -10,8 +12,10 @@ set OUTPUT_FOLDER=build_web_release call build_web_common.bat || goto :error -goto :EOF +goto :success :error echo Failed to build +:success +popd exit /B %ERRORLEVEL%