Skip to content

Instantly share code, notes, and snippets.

@coke

coke/build.bat Secret

Created October 5, 2021 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coke/d3ef45869600ebad1a6e68bd9325ac0d to your computer and use it in GitHub Desktop.
Save coke/d3ef45869600ebad1a6e68bd9325ac0d to your computer and use it in GitHub Desktop.
REM Make this smart to check if a redo is needed before doing the clean
setlocal
set INSTALL_DIR=C:\sandbox\install-dev
set moarvm_version=master
set nqp_version=master
set rakudo_version=master
set PATH=%INSTALL_DIR%\bin;%PATH%
:do_moar
cd \sandbox\MoarVM-dev
git clean -xdf
git pull --rebase
git checkout %moarvm_version%
perl Configure.pl --prefix=%INSTALL_DIR%
nmake install
:do_nqp
cd \sandbox\nqp-dev
git clean -xdf
git pull --rebase
git checkout %nqp_version%
perl Configure.pl --prefix=%INSTALL_DIR% --backend=moar
nmake install
nmake test
:do_rakudo
cd \sandbox\rakudo-dev
git clean -xdf
git pull --rebase
git checkout %rakudo_version%
perl Configure.pl --prefix=%INSTALL_DIR% --backend=moar
nmake install
nmake test
:done
endlocal
cd \sandbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment