Advertisement
Guest User

get_rakudo

a guest
Nov 25th, 2013
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.10 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # setup rakudo* after downloado
  4. # Download, untar, make, install and link test programs
  5.  
  6. # invoke with get_rakudo yyyy mm
  7. #
  8.  
  9. if [ 2 -ne $# ]
  10. then
  11.    echo "Usage: get_rakudo yyyy mm # yyyy is year, mm is month"
  12.    exit 1;
  13. fi
  14.  
  15. if [ 2013 -gt $1 ]
  16. then
  17.     echo "Year $1 not valid; must be >= 2013"
  18.     exit 1
  19. fi
  20.  
  21. if [ 01 -gt $2 ] || [ 12 -lt $2 ]
  22. then
  23.     echo "Month $2 not valid; must be 01 to 12"
  24.     exit 1
  25. fi
  26.  
  27. directory=~/experiment          # set to wherever you want rakudo
  28. wanted=rakudo-star-$1.$2        # make following lines readable
  29.  
  30. cd $directory
  31. curl -O rakudo.org/downloads/star/$wanted.tar.gz # get the tarball
  32.  
  33. tar -xvf $wanted.tar.gz                    # unpack it
  34. cd $wanted                                 # change into directory
  35.  
  36. perl Configure.pl --gen-parrot --gen-nqp
  37. make
  38. make install
  39.                      # change symbolic link to point to this perl 6
  40.  
  41. ln -sf $(pwd)/perl6 ~/bin/perl6
  42. ln  ../*.pl .   # Sample perl6 programs in parent directory
  43. cd -            # return whence you came
  44.  
  45. #  End get_rakudo    Last changed: 2013-11-25 15:32:49
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement