-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathraku-install.sh
More file actions
executable file
·50 lines (39 loc) · 1.06 KB
/
Copy pathraku-install.sh
File metadata and controls
executable file
·50 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
#
# Copyright © 2018-2026 Joelle Maslak
# All Rights Reserved - See License
#
# Specify RAKUVER if you want to override. For instance, you can do
# something like:
# ./raku-install.sh blead
#
if [ "$RAKUVER" = "" ] ; then
RAKUVER=2026.03
fi
doit() {
# Defensive umask
if [ "$(umask)" == '0000' ] ; then
umask 0002
fi
echo " --->> Switching to root directory"
cd ~ || echo >/dev/null
if [ ! -d .rakubrew ] ; then
mkdir .rakubrew
cd .rakubrew || echo >/dev/null
# This works for Linux. For MacOS replace "perl" with "macos"
curl https://rakubrew.org/perl/rakubrew >rakubrew
chmod a+x rakubrew
cd .. || echo >/dev/null
fi
export PATH="$HOME/.rakubrew:$PATH"
eval "$(~/.rakubrew/rakubrew init Bash)"
echo " --->> Building moar"
rakubrew build $RAKUVER
if [ "$SKIPSWITCH" == "" ] ; then
echo " --->> Switching active moar"
rakubrew switch moar-$RAKUVER
fi
echo " --->> Building zef"
rakubrew build zef
}
doit