Check CWD in builds-deps.cmd #804

This commit is contained in:
Thomas Krijnen
2020-03-25 14:20:47 +01:00
parent 7e6ebbebe0
commit 8625aab5f0
+9
View File
@@ -24,6 +24,13 @@
@echo off
echo.
for %%Q in ("%~dp0\.") DO set "batpath=%%~fQ"
if NOT "%CD%" == "%batpath%" (
GOTO :ErrorAndPrintUsage
)
set PROJECT_NAME=IfcOpenShell
call utils\cecho.cmd 15 0 "This script fetches and builds all %PROJECT_NAME% dependencies"
echo.
@@ -562,3 +569,5 @@ echo - https://www.visualstudio.com/
echo 5. Run this batch script with Visual Studio environment variables set.
echo - https://msdn.microsoft.com/en-us/library/ms229859(v=vs.110).aspx
echo.
echo NB: This script needs to be ran from the directory directly containing it.
echo.