-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·50 lines (38 loc) · 1.04 KB
/
install.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
46
47
48
49
50
#!/bin/sh
read -p "which os? (linux/mac)" CONT
if [ "$CONT" == "linux" ]; then
echo "Linux Install"
if hash wget > 2>/dev/null; then
sudo apt-get install wget
fi
if hash fontforge > 2>/dev/null; then
sudo apt-get install fontforge
fi
if hash ttfautohint > 2>/dev/null; then
sudo apt-get install ttfautohint
fi
if hash ruby > 2>/dev/null; then
sudo apt-get install ruby
fi
if hash gem > 2>/dev/null; then
sudo apt-get install rubygems
fi
else
echo "Mac Install"
### install brew with curl
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
### brew install wget and node
brew install wget
brew install node
brew install ttfautohint fontforge --with-python
fi
### install sass
#sudo gem install sass
#sudo gem install sass-json-vars
### node package manager
#npm install bower -g
#npm install grunt-cli -g
### install package.json dependencies
npm install
### create theme css with theme directory
node tasks