-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_server_mac.sh
More file actions
executable file
·58 lines (50 loc) · 1 KB
/
Copy pathinstall_server_mac.sh
File metadata and controls
executable file
·58 lines (50 loc) · 1 KB
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
#!/bin/bash
CURRENT_DIR=$(pwd)
#Download and install Homebrew
echo "Check Homebrew..."
isbrew=$(brew -v)
if [ ${isbrew:0:8}="Homebrew" ]
then
echo "Homebrew is already installed"
else
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
#install node
echo "Check node..."
isnode=$(node -v)
if [ `expr "$isnode" : "v*.*.*"` ]
then
echo "node is already installed."
else
brew install --silent node
fi
#install bower
echo "Check bower..."
isbower=$(bower -v)
if [ `expr "$isnode" : "*.*.*"` ]
then
echo "bower is already installed."
else
npm install --silent bower
fi
#install pip
echo "Check pip..."
ispip=$(pip -V)
if [ `expr "$ispip" : "pip * from *"` ]
then
echo "pip is already installed."
else
sudo easy_install -q pip
fi
#install virtualenv
echo "Check virtualenv..."
isvenv=$(virtualenv --version)
if [ `expr "$isvenv" : "*.*.*"` ]
then
echo "virtualenv is already installed."
else
sudo pip install -q virtualenv
fi
#make venv
echo "make venv..."
virtualenv venv