forked from mikoto20000/railsgun
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathgems
More file actions
executable file
·25 lines (21 loc) · 544 Bytes
/
gems
File metadata and controls
executable file
·25 lines (21 loc) · 544 Bytes
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
#!/bin/bash
# rubygems.lstからgemのリストを取得しインストール
GEM=`which gem2.0`
if [ "$GEM" = "" ]
then
GEM=gem
fi
# インストールするディレクトリ名
NAME=(`grep -v "^#" inst-script/rubygems.lst | awk -F, '{print $1}'`)
VER=(`grep -v "^#" inst-script/rubygems.lst | awk -F, '{print $2}'`)
for (( i = 0; i < ${#NAME[@]}; ++i ))
do
NAME=${NAME[$i]}
VER=${VER[$i]}
if [ "$VER" = "-" ]
then
$GEM install -f $NAME --no-rdoc --no-ri
else
$GEM install -f $NAME -v=$VER --no-rdoc --no-ri
fi
done