-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·53 lines (46 loc) · 1.15 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
51
52
53
#!/usr/bin/env bash
# Bring in the code
echo
echo 'Cloning git repos...'
echo
rm -rf grunt-carnaby grunt-init-carnaby &&
git clone [email protected]:elgrancalavera/grunt-carnaby.git &&
git clone [email protected]:elgrancalavera/grunt-init-carnaby.git &&
# Symlink the grunt-init-carnaby template
mkdir -p ~/.grunt-init/
rm -f ~/.grunt-init/carnaby
from=$(pwd)'/grunt-init-carnaby'
to=~/.grunt-init
to=$to'/carnaby'
echo
echo 'Symlinking grunt-init-carnaby template...'
echo 'From: ' $from
echo 'To: ' $to
echo
ln -s $from $to
ls -laf ~/.grunt-init
# Symlink the grunt-carnaby gruntplugin
mkdir -p grunt-init-carnaby/node_modules
from=$(pwd)'/grunt-carnaby'
to=$(pwd)'/grunt-init-carnaby/node_modules'
echo
echo 'Symlinking grunt-carnaby gruntplugin...'
echo 'From: ' $from
echo 'To: ' $to
echo
ln -s $from $to
ls -laf grunt-init-carnaby/node_modules
# Install grunt-carnaby
echo
echo 'Insalling grunt-carnaby plugin...'
echo
cd grunt-carnaby && npm install && grunt &&
# Install grunt-init-carnaby
echo
echo 'Installing grunt-init-carnaby template...'
echo
cd ../grunt-init-carnaby && npm install && grunt &&
cd ..; subl meta-carnaby.sublime-project
echo
echo 'Done.'
echo