-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathelixir-erlang-asdf-install.sh
81 lines (64 loc) · 2.38 KB
/
elixir-erlang-asdf-install.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
ERLANG_VERSION=$(asdf latest erlang)
ELIXIR_VERSION=$(asdf latest elixir)
RUST_VERSION=$(asdf latest rust)
RUBY_VERSION=$(asdf latest ruby)
# ERLANG_VERSION=24.0.5
# ELIXIR_VERSION=1.12.2-otp-24
# RUST_VERSION=1.54.0
# RUBY_VERSION=3.0.2
asdf update
asdf plugin update --all
LATEST_ERLANG_VERSION=$(asdf latest erlang)
LATEST_ELIXIR_VERSION=$(asdf latest elixir)
LATEST_RUST_VERSION=$(asdf latest rust)
LATEST_RUBY_VERSION=$(asdf latest ruby)
CURRENT_ERLANG_VERSION=$(asdf current erlang)
CURRENT_ELIXIR_VERSION=$(asdf current elixir)
CURRENT_RUST_VERSION=$(asdf current rust)
CURRENT_RUBY_VERSION=$(asdf current ruby)
echo ""
echo "Latest Erlang version: ${LATEST_ERLANG_VERSION}"
echo "Current Erlang version: ${CURRENT_ERLANG_VERSION}"
echo "Erlang version to install: ${ERLANG_VERSION}"
if [[ "${LATEST_ERLANG_VERSION}" != "${ERLANG_VERSION}" ]]
then
echo ----- UPDATE GITHUB: Need to update github and modify the version of Erlang to install
fi
echo ""
echo "Latest Elixir version: ${LATEST_ELIXIR_VERSION}"
echo "Current Elixir version: ${CURRENT_ELIXIR_VERSION}"
echo "Elixir version to install: ${ELIXIR_VERSION}"
if [[ "${LATEST_ELIXIR_VERSION}" != "${ELIXIR_VERSION}" ]]
then
echo ----- UPDATE GITHUB: Need to update github and modify the version of Elixir to install
fi
echo ""
echo "Latest Rust version: ${LATEST_RUST_VERSION}"
echo "Current Rust version: ${CURRENT_RUST_VERSION}"
echo "Rust version to install: ${RUST_VERSION}"
if [[ "${LATEST_RUST_VERSION}" != "${RUST_VERSION}" ]]
then
echo ----- UPDATE GITHUB: Need to update github and modify the version of Rust to install
fi
echo ""
echo "Latest Ruby version: ${LATEST_RUBY_VERSION}"
echo "Current Ruby version: ${CURRENT_RUBY_VERSION}"
echo "Ruby version to install: ${RUBY_VERSION}"
if [[ "${LATEST_RUBY_VERSION}" != "${RUBY_VERSION}" ]]
then
echo ----- UPDATE GITHUB: Need to update github and modify the version of Ruby to install
fi
echo ""
set -x
asdf install erlang $ERLANG_VERSION
asdf global erlang $ERLANG_VERSION
asdf install elixir $ELIXIR_VERSION
asdf global elixir $ELIXIR_VERSION
asdf install rust $RUST_VERSION
asdf global rust $RUST_VERSION
asdf install ruby $RUBY_VERSION
asdf global ruby $RUBY_VERSION
gem install htmlbeautifier
gem update htmlbeautifier
set +x
# asdf list-all ruby | grep -i "^[0-9]"