-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-compilers.sh
40 lines (35 loc) · 938 Bytes
/
install-compilers.sh
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
#!/bin/bash
cd $(dirname $0)
unset GIT_WORK_TREE
unset GIT_DIR
base=$(pwd)
ocamlVersion="4.02.3+buckle-master"
nodeVersion="10.6.0"
opam init --y
opam switch create $ocamlVersion --y &> /dev/null
opam switch $ocamlVersion --y
eval $(opam config env)
opam install ppx_tools --y
opam install ppx_tools_versioned --y
opam install ocaml-migrate-parsetree --y
opam install yojson --y
unset NVM_DIR
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install node v$nodeVersion
nvm use --delete-prefix v$nodeVersion
mkdir -p ~/build &> /dev/null
cd ~/build
build=$(pwd)
git clone https://github.com/bsansouci/bsb-native.git
cd bsb-native
git pull
make && make install
cd $base
npm install -g yarn
npm install -g bs-platform
npm install -g json
npm install -g reason-cli
npm install -D bs-platform@file:$build/bsb-native
bash