Created
February 5, 2015 18:11
-
-
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
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
#!/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