From 90d276b0dc1ecd8d59e5ff177abe44af2277008f Mon Sep 17 00:00:00 2001 From: Cayleb-Ordo Date: Thu, 2 Jan 2025 19:47:08 +0100 Subject: [PATCH] Make windows batch-scripts independent of calling directory Change dir to batch-script location as first action. This allows to run the script from outside the directory its stored. --- build/workspaces/update-workspaces.bat | 1 + libraries/get-windows-libs.bat | 2 ++ 2 files changed, 3 insertions(+) diff --git a/build/workspaces/update-workspaces.bat b/build/workspaces/update-workspaces.bat index 90f288706a..51cfea2011 100644 --- a/build/workspaces/update-workspaces.bat +++ b/build/workspaces/update-workspaces.bat @@ -1,6 +1,7 @@ @echo off rem ** Create Visual Studio Workspaces on Windows ** +cd /D "%~dp0" cd ..\bin if not exist ..\workspaces\vs2017\SKIP_PREMAKE_HERE premake5.exe --file="../premake/premake5.lua" --outpath="../workspaces/vs2017" %* vs2017 cd ..\workspaces diff --git a/libraries/get-windows-libs.bat b/libraries/get-windows-libs.bat index 66e3984eca..12c0c2658e 100644 --- a/libraries/get-windows-libs.bat +++ b/libraries/get-windows-libs.bat @@ -1,5 +1,7 @@ rem **Download sources and binaries of libraries** +cd /D "%~dp0" + rem **SVN revision to checkout for windows-libs** rem **Update this line when you commit an update to windows-libs** set "svnrev=28243"