From 832a7b4b801669e24db6211f330c157b47ff39bc Mon Sep 17 00:00:00 2001 From: PS Date: Sat, 10 Feb 2024 13:02:06 -0800 Subject: [PATCH] build.bat works from anywhere --- code/bin/build.bat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/bin/build.bat b/code/bin/build.bat index bd2d4ecc..7af680c4 100644 --- a/code/bin/build.bat +++ b/code/bin/build.bat @@ -1,10 +1,11 @@ @echo off set location=%cd% -set me="%~dp0" +set me=%~dp0 -REM 4cc\code\bin +:: REM 4cc\code\bin cd %me% +REM ..\code\bin REM 4cc cd ..\.. @@ -34,6 +35,7 @@ if %ERRORLEVEL% neq 0 (set FirstError=1) if %ERRORLEVEL% neq 0 (goto END) popd +cd %me%\.. %build_root%\build :END if %ERRORLEVEL% neq 0 (set FirstError=1)