Skip to content

Instantly share code, notes, and snippets.

@gitlarryf
Created May 6, 2020 17:17
Show Gist options
  • Save gitlarryf/f07caabe8e0dfcac6b5d47218ee75667 to your computer and use it in GitHub Desktop.
Save gitlarryf/f07caabe8e0dfcac6b5d47218ee75667 to your computer and use it in GitHub Desktop.
Recompiles all .neonx files in a Neon working folder.
@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