find the RGL folder by using gf --version

This commit is contained in:
Krasimir Angelov
2022-08-24 13:29:44 +02:00
parent 34300d68bb
commit 5645134aa3
3 changed files with 14 additions and 21 deletions

View File

@@ -37,20 +37,6 @@ if "%dest%"=="" (
)
:BreakLibPath
set DATA_DIR=..\gf-core\DATA_DIR
if "%dest%"=="" (
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