forked from tzarskyz/dotfiles-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruby_setup.sh
executable file
·25 lines (21 loc) · 946 Bytes
/
ruby_setup.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
#!/usr/bin/env dash
if [ ! -d "$HOME/code" ]; then
mkdir "$HOME/code"
fi
cd "$HOME/code"
git clone https://github.com/sstephenson/ruby-build.git
curl -so "$HOME/code/ruby-build/share/ruby-build/1.9.3-p194-falcon" \
https://raw.github.com/gist/2985597/1648ee35307a6bac608712a7c2d269fe505fdf94/1.9.3-p194-falcon
git clone https://github.com/hmans/rbfu.git
mkdir -p "$HOME/.rbfu/rubies"
rb="$HOME/code/ruby-build"
cd "$rb"
"$rb/bin/ruby-build" "$rb/share/ruby-build/1.9.3-p194-falcon" \
"$HOME/.rbfu/rubies/1.9.3-p194-falcon"
"$rb/bin/ruby-build" "$rb/share/ruby-build/1.8.7-p358" \
"$HOME/.rbfu/rubies/1.8.7-p358"
"$rb/bin/ruby-build" "$rb/share/ruby-build/ree-1.8.7-2012.02" \
"$HOME/.rbfu/rubies/ree-1.8.7-2012.02"
ln -s "$HOME/.rbfu/rubies/ree-1.8.7-2012.02" "$HOME/.rbfu/rubies/ree"
ln -s "$HOME/.rbfu/rubies/1.9.3-p194-falcon" "$HOME/.rbfu/rubies/1.9.3"
ln -s "$HOME/.rbfu/rubies/1.8.7-p358" "$HOME/.rbfu/rubies/1.8.7"