build.bat works from anywhere

This commit is contained in:
PS 2024-02-10 13:02:06 -08:00
parent 5bfb737720
commit 832a7b4b80
1 changed files with 4 additions and 2 deletions

View File

@ -1,10 +1,11 @@
@echo off @echo off
set location=%cd% set location=%cd%
set me="%~dp0" set me=%~dp0
REM 4cc\code\bin :: REM 4cc\code\bin
cd %me% cd %me%
REM ..\code\bin
REM 4cc REM 4cc
cd ..\.. cd ..\..
@ -34,6 +35,7 @@ if %ERRORLEVEL% neq 0 (set FirstError=1)
if %ERRORLEVEL% neq 0 (goto END) if %ERRORLEVEL% neq 0 (goto END)
popd popd
cd %me%\..
%build_root%\build %build_root%\build
:END :END
if %ERRORLEVEL% neq 0 (set FirstError=1) if %ERRORLEVEL% neq 0 (set FirstError=1)