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.
This commit is contained in:
Cayleb-Ordo authored and Stan committed 2025-01-05 19:38:37 +01:00
1 parent 21eddf0d39
commit 90d276b0dc
2 files changed
+3

No files matched your search

+1
View File
@@ -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
+2
View File
@@ -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"