Skip to content

Instantly share code, notes, and snippets.

@avar
Created February 5, 2015 18:11
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 avar/430043e8944d6767df87 to your computer and use it in GitHub Desktop.
Save avar/430043e8944d6767df87 to your computer and use it in GitHub Desktop.
A very basic builder for the Perl 6 MoarVM+NQP+Rakudo distributions, which installs them into a given target
#!/bin/sh -xe
root=/tmp/usr
prefix=$root/local/my-perl6/blead
work=/tmp/perl6-git
jobs=18
rm -rfv $root $work || :
mkdir $work
cd $work
# MoarVM
(
git clone https://github.com/MoarVM/MoarVM.git
cd MoarVM
perl Configure.pl --prefix=$prefix --use-readline
make -j $jobs
# There's no "make test" for MoarVM
make install
)
# NQP
(
git clone https://github.com/perl6/nqp.git
cd nqp
perl Configure.pl --with-moar=$prefix/bin/moar --prefix=$prefix
make -j $jobs
TEST_JOBS=$jobs make test
make install
)
# Rakudo
(
git clone https://github.com/rakudo/rakudo.git
cd rakudo
perl -pi -e 's[git://github.com/perl6/roast.git][https://github.com/perl6/roast.git]g' tools/build/Makefile-common.in
perl Configure.pl --prefix=$prefix --backends=moar
make -j $jobs
TEST_JOBS=$jobs make test
TEST_JOBS=$jobs make spectest
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment