From 4a85289597425f003cc66073d220aacb6ef26f6e Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Mon, 26 Nov 2018 15:19:05 +0100 Subject: [PATCH] Batch build script handles multiple paths in GF_LIB_PATH (picks first) --- Make.bat | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Make.bat b/Make.bat index 5cb9603e..2cf36947 100644 --- a/Make.bat +++ b/Make.bat @@ -29,11 +29,15 @@ goto Loop REM Try to determine install location if "%dest%"=="" ( - REM TODO Separate paths with search path separator ; and pick first one - set dest=%GF_LIB_PATH% + REM Separate paths with search path separator ; and pick first one + for %%p in ("%GF_LIB_PATH:;=";"%") do ( + set dest=%%~p + goto BreakLibPath + ) ) +:BreakLibPath if "%dest%"=="" ( - REM TODO Look in ../gf-core/DATA=DIR + REM TODO Look in ../gf-core/DATA_DIR ) if "%dest%"=="" ( echo Unable to determine where to install the RGL. Please do one of the following: