-
Notifications
You must be signed in to change notification settings - Fork 1
/
make_machines.sh
executable file
·48 lines (35 loc) · 933 Bytes
/
make_machines.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
#!/bin/sh
parallelization="-j 12"
cd ..
if [ ! -d "pugixml" ] && ! git clone https://github.com/zeux/pugixml.git ; then
echo >/dev/stderr "Couldn't clone pugixml"
exit 1
fi
if [ ! -d "ceps" ] && ! git clone https://github.com/cepsdev/ceps.git ; then
echo >/dev/stderr "Couldn't clone ceps"
exit 2
fi
cd ceps/core
mkdir bin 2>/dev/null
echo "\033[1;32mBuilding ceps/core\033[0m"
if ! make -B ; then
echo >/dev/stderr "Failed to make ceps"
exit 3
fi
cd ../..
if [ ! -d "log4ceps" ] && ! git clone https://github.com/cepsdev/log4ceps.git ; then
echo >/dev/stderr "Couldn't clone log4ceps"
exit 4
fi
cd machines4ceps || exit 9
mkdir bin 2>/dev/null
echo "\033[1;32mBuilding machines4ceps\033[0m"
if ! make $parallelization TARGET=bin ; then
echo >/dev/stderr "Couldn't build machines4ceps"
exit 10
fi
cd ..
echo
echo "\033[0;32m==>Build Complete<==\033[0m"
machines4ceps/bin/ceps --version
echo