Tue, 16 Feb 2016 21:20:22 -0500
Make sure bundler is installed somehow
245 | 1 | #!/bin/sh |
2 | ||
3 | set -eu | |
4 | ||
5 | if ! git --version >/dev/null; then | |
6 | echo "Please install git!" | |
7 | exit 1 | |
8 | fi | |
9 | ||
10 | pull () { | |
11 | echo "$1:" | |
12 | git -C $1 pull --no-tags | |
13 | } | |
14 | ||
15 | if ! [ -d .zgen ]; then | |
16 | git clone https://github.com/tarjoilija/zgen.git .zgen | |
17 | else | |
18 | pull .zgen | |
19 | fi | |
20 | ||
21 | if ! [ -d .plenv ]; then | |
22 | git clone https://github.com/tokuhirom/plenv.git .plenv | |
23 | git clone https://github.com/tokuhirom/Perl-Build.git .plenv/plugins/perl-build/ | |
24 | else | |
25 | pull .plenv | |
26 | pull .plenv/plugins/perl-build | |
27 | fi | |
28 | ||
29 | if ! [ -d .rbenv ]; then | |
30 | git clone https://github.com/sstephenson/rbenv.git .rbenv | |
31 | git clone https://github.com/sstephenson/ruby-build.git .rbenv/plugins/ruby-build/ | |
32 | else | |
33 | pull .rbenv | |
34 | pull .rbenv/plugins/ruby-build | |
35 | fi | |
36 | ||
37 | if ! [ -d .ndenv ]; then | |
38 | git clone https://github.com/riywo/ndenv.git .ndenv | |
39 | git clone https://github.com/riywo/node-build.git .ndenv/plugins/node-build | |
40 | else | |
41 | pull .ndenv | |
42 | pull .ndenv/plugins/node-build | |
43 | fi | |
44 |