From 92f7dbc80e14c805abda39be3c07e55730969377 Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Mon, 26 Nov 2018 15:35:44 +0100 Subject: [PATCH] Batch build script also looks in ../gf-core/DATA_DIR --- Make.bat | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Make.bat b/Make.bat index 2cf36947d..9dc085fb9 100644 --- a/Make.bat +++ b/Make.bat @@ -36,9 +36,21 @@ if "%dest%"=="" ( ) ) :BreakLibPath + +set DATA_DIR=..\gf-core\DATA_DIR if "%dest%"=="" ( - REM TODO Look in ../gf-core/DATA_DIR + REM Look in already compiled GF folder + if exist %DATA_DIR% ( + for /f "delims=" %%x in (%DATA_DIR%) do ( + if not "%%x"=="" ( + set dest=%%x\lib + goto BreakDataDir + ) + ) + ) ) +:BreakDataDir + if "%dest%"=="" ( echo Unable to determine where to install the RGL. Please do one of the following: echo - Pass the --dest=... flag to this script