From 5aa4391ea6eb3ecff3174cf9a3e4de678b14ef1c Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Mon, 20 Jan 2020 23:32:50 -0800 Subject: [PATCH] batch files now base their root path off of their current directory --- build.bat | 5 ++--- meta/build.bat => build_meta.bat | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) rename meta/build.bat => build_meta.bat (86%) diff --git a/build.bat b/build.bat index bd365d8..9c28889 100644 --- a/build.bat +++ b/build.bat @@ -1,8 +1,7 @@ @echo off -set ProjectDevRoot=C:\projects\test -set ProjectName=Lumenarium -set ProjectDevPath=%ProjectDevRoot%\%ProjectName% +set ProjectDevFolder=%~dp0 +set ProjectDevPath=%ProjectDevFolder:~0,-1% pushd %ProjectDevPath% diff --git a/meta/build.bat b/build_meta.bat similarity index 86% rename from meta/build.bat rename to build_meta.bat index bcd292e..1197f0a 100644 --- a/meta/build.bat +++ b/build_meta.bat @@ -1,8 +1,7 @@ @echo off -set ProjectDevRoot=C:\projects\test -set ProjectName=Lumenarium -set ProjectDevPath=%ProjectDevRoot%\%ProjectName% +set ProjectDevFolder=%~dp0 +set ProjectDevPath=%ProjectDevFolder:~0,-1% pushd %ProjectDevPath%