-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
44 lines (37 loc) · 1.01 KB
/
setup.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
#!/bin/bash
# downloads the subprojects and compiles the project
root=mope
server=mope-server
mkdir $root
cd $root
echo "===> Cloning server repos"
git clone https://github.com/THM-MoTE/mope-server.git
git clone https://github.com/THM-MoTE/omc-java-api.git
git clone https://github.com/THM-MoTE/EnhancedWatchService.git
git clone https://github.com/THM-MoTE/recently.git
echo
echo "===> Cloning atom plugin"
git clone https://github.com/THM-MoTE/mope-atom-plugin.git
cd "omc-java-api"
sbt compile
cd $server
sbt compile
echo
echo "===> Projects cloned & compiled! They are at:"
echo "./"$root"/mope-server"
echo "./"$root"/omc-java-api"
echo "./"$root"/EnhancedWatchService"
echo "./"$root"/mope-atom-plugin"
echo "./"$root"/recently"
echo
echo "================"
echo "===> Now installing Atom-Plugin into Atom"
cd ../mope-atom-plugin
if which apm > /dev/null; then
apm install
echo "Link plugin into packages"
apm link
echo "Plugin installed!"
else
echo "Can't find `apm`-command; is it on your $PATH?"
fi