Created
May 6, 2020 17:17
-
-
Save gitlarryf/f07caabe8e0dfcac6b5d47218ee75667 to your computer and use it in GitHub Desktop.
Recompiles all .neonx files in a Neon working folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
SET /A count=0 | |
call:Libraries | |
call:Samples | |
call:Tests | |
goto:end | |
:Libraries | |
echo Recompiling Neon Libraries... | |
del lib\*.neonx | |
for %%a in (lib\*.neon) do ( | |
bin\neonc %%a | |
IF ERRORLEVEL 0 SET /A count=!count!+1 | |
) | |
goto:eof | |
:Samples | |
echo Recompiling Samples... | |
pushd samples | |
for /r %%a in (*.neonx) do DEL %%a /Y | |
for /r %%a in (*.neon) do ( | |
..\bin\neonc %%a | |
IF ERRORLEVEL 0 SET /A count=!count!+1 | |
) | |
popd | |
goto:eof | |
:Tests | |
echo Recompiling Neon tests... | |
for %%a in (t\*.neon) do ( | |
bin\neonc %%a | |
IF ERRORLEVEL 0 SET /A count=!count!+1 | |
) | |
goto:eof | |
:end | |
@ECHO ON | |
echo Recompiled %count% Neon programs. | |
ENDLOCAL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment