mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
Make.bat: Collect modules in two stages
For some reason second inner loop was never reached, this is a simple solution. Also remove stderr redirection as it didn't seem to work. --verbose now names each module individually
This commit is contained in:
10
Make.bat
10
Make.bat
@@ -45,11 +45,11 @@ if "%dest%"=="" (
|
|||||||
REM A few more definitions before we get started
|
REM A few more definitions before we get started
|
||||||
set src=src
|
set src=src
|
||||||
set dist=dist
|
set dist=dist
|
||||||
set gfc=%gf% --batch --gf-lib-path=%src% --quiet
|
set gfc=%gf% --batch --gf-lib-path=%src%
|
||||||
|
|
||||||
REM Redirect stderr if not verbose
|
REM Add quiet flag if not verbose
|
||||||
if %verbose%==false (
|
if %verbose%==false (
|
||||||
set gfc=!gfc! 2>NUL
|
set gfc=%gfc% --quiet
|
||||||
)
|
)
|
||||||
|
|
||||||
REM Make directories if not present
|
REM Make directories if not present
|
||||||
@@ -72,6 +72,8 @@ for %%l in (%langs%) do (
|
|||||||
if exist %%n set modules=!modules! %%n
|
if exist %%n set modules=!modules! %%n
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
for %%l in (%langs%) do (
|
||||||
for %%m in (%modules_api%) do (
|
for %%m in (%modules_api%) do (
|
||||||
set patt=%%m%%l.gf
|
set patt=%%m%%l.gf
|
||||||
for /r %src%\api %%n in (!patt!) do (
|
for /r %src%\api %%n in (!patt!) do (
|
||||||
@@ -83,12 +85,14 @@ for %%l in (%langs%) do (
|
|||||||
REM Build: present
|
REM Build: present
|
||||||
echo Building [present]
|
echo Building [present]
|
||||||
for %%m in (%modules%) do (
|
for %%m in (%modules%) do (
|
||||||
|
if %verbose%==true echo %%m
|
||||||
%gfc% --no-pmcfg --gfo-dir=%dist%\present --preproc=mkPresent %%m
|
%gfc% --no-pmcfg --gfo-dir=%dist%\present --preproc=mkPresent %%m
|
||||||
)
|
)
|
||||||
|
|
||||||
REM Build: alltenses
|
REM Build: alltenses
|
||||||
echo Building [alltenses]
|
echo Building [alltenses]
|
||||||
for %%m in (%modules%) do (
|
for %%m in (%modules%) do (
|
||||||
|
if %verbose%==true echo %%m
|
||||||
%gfc% --no-pmcfg --gfo-dir=%dist%\alltenses %%m
|
%gfc% --no-pmcfg --gfo-dir=%dist%\alltenses %%m
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user