Skip to content

Instantly share code, notes, and snippets.

@KamilaBorowska
Created October 30, 2012 20:41
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 KamilaBorowska/3982880 to your computer and use it in GitHub Desktop.
Save KamilaBorowska/3982880 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -ne 3 ]
then
echo "Usage: `basename $0` [url] [path] [name]"
exit 65
fi
mkdir "$2/$3"
rm -rf /tmp/rakudo-gen
mkdir /tmp/rakudo-gen
cd /tmp/rakudo-gen
curl -L "$1" | tar -xzvf -
cd *
perl Configure.pl --prefix="$2/$3" --gen-parrot --gen-nqp
make
make install
cd "$2/$3"
cd bin
for i in *
do
ln "$i" "$i-$3"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment