forked from monarch-initiative/monarch-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installRingo.sh
executable file
·45 lines (39 loc) · 1 KB
/
installRingo.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
#!/bin/sh
mkdir -p tools/
if [ -h tools/ringo ]; then
echo "tools/ringo already installed"
else
BREWCOMMAND="`which brew`"
APTGETCOMMAND="`which apt-get`"
if [ $BREWCOMMAND ]; then
echo "Mac/Homebrew install"
RINGOCOMMAND="`which ringo`"
if [ $RINGOCOMMAND ]; then
echo "ringojs already installed"
else
brew install ringojs
fi
ln -fs `which ringo` tools/
ln -fs `which ringo-admin` tools/
# elif [ $APTGETCOMMAND ]; then
#
# # Not yet tested. Seth says this will work if apt is configured
# # to point to the correct repo.
#
# sudo apt-get install ringojs
else
echo "Default install"
V=ringojs-0.9
WGETCOMMAND="`which wget`"
if [ "$WGETCOMMAND" ]; then
GETTER="curl --output"
else
GETTER="wget --output-document"
fi
$GETTER /tmp/$V.tar.gz http://ringojs.org/downloads/$V.tar.gz
tar -C tools/ -zxvf /tmp/$V.tar.gz
ln -s `pwd`/tools/$V/bin/ringo tools/ringo
ln -s `pwd`/tools/$V/bin/ringo-admin tools/ringo-admin
fi
tools/ringo-admin install --force ringo/stick
fi