-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·70 lines (70 loc) · 1.47 KB
/
install.sh
File metadata and controls
executable file
·70 lines (70 loc) · 1.47 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
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
if ! [ -x "$(command -v git)" ]; then
echo 'Please install git '
exit 1
else
echo 'git is installed'
fi
if ! [ -x "$(command -v npm)" ]; then
echo 'Please install npm '
else
echo 'npm is installed'
fi
if ! [ -x "$(command -v bower)" ]; then
echo 'Please install bower '
exit 1
else
echo 'bower is installed'
fi
if ! [ -x "$(command -v gulp)" ]; then
echo 'Please install bower '
exit 1
else
echo 'gulp is installed'
fi
if ! [ -x "$(command -v ember)" ]; then
echo 'Please install ember '
exit 1
else
echo 'ember is installed'
fi
if [ -d ~/axsem ];
then
if [ -d ~/axsem/morgana ];
then
echo 'Nice you have morgana :)'
else
cd ~/axsem
git clone git@github.com:aexeagmbh/morgana.git
cd ~/axsem/morgana
npm install
bower install
fi
if [ -d ~/axsem/snape ];
then
echo 'Nice you have snape :)'
else
cd ~/axsem
git clone git@github.com:aexeagmbh/snape.git
cd ~/axsem/snape
npm install
bower install
fi
if [ -d ~/axsem/nagini ];
then
echo 'Nice you have nagini :)'
else
cd ~/axsem
git clone git@github.com:aexeagmbh/nagini.git
cd ~/axsem/nagini
git submodule init
git submodule update
npm run snape:install
npm run snape:build
npm install
cp config.stage.js config.dev.js
fi
else
echo 'mkdir axsem'
mkdir axsem
fi