Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # setup rakudo* after downloado
- # Download, untar, make, install and link test programs
- # invoke with get_rakudo yyyy mm
- #
- if [ 2 -ne $# ]
- then
- echo "Usage: get_rakudo yyyy mm # yyyy is year, mm is month"
- exit 1;
- fi
- if [ 2013 -gt $1 ]
- then
- echo "Year $1 not valid; must be >= 2013"
- exit 1
- fi
- if [ 01 -gt $2 ] || [ 12 -lt $2 ]
- then
- echo "Month $2 not valid; must be 01 to 12"
- exit 1
- fi
- directory=~/experiment # set to wherever you want rakudo
- wanted=rakudo-star-$1.$2 # make following lines readable
- cd $directory
- curl -O rakudo.org/downloads/star/$wanted.tar.gz # get the tarball
- tar -xvf $wanted.tar.gz # unpack it
- cd $wanted # change into directory
- perl Configure.pl --gen-parrot --gen-nqp
- make
- make install
- # change symbolic link to point to this perl 6
- ln -sf $(pwd)/perl6 ~/bin/perl6
- ln ../*.pl . # Sample perl6 programs in parent directory
- cd - # return whence you came
- # End get_rakudo Last changed: 2013-11-25 15:32:49
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement