-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·80 lines (66 loc) · 1.5 KB
/
build.sh
File metadata and controls
executable file
·80 lines (66 loc) · 1.5 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
71
72
73
74
75
76
77
78
79
#!/bin/bash
# ---------------------------------------------------------------------
# Plugins startup script.
# ---------------------------------------------------------------------
clear
#COLOR
BLACK='\033[0;30m'
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
MAGENTA='\033[0;35m'
CYAN='\033[0;36m'
GRAY='\033[0;37m'
BOLD='\033[1m'
DBOLD='\033[2m'
NBOLD='\033[22m'
UNDERLINE='\033[4m'
NUNDERLINE='\033[4m'
BLINK='\033[5m'
NBLINK='\033[5m'
INVERSE='\033[7m'
NINVERSE='\033[7m'
BREAK='\033[m'
NORMAL='\033[0m'
#Help
if [ -n "$1" ]
then
if [[ $1 = "-h" ]];then
echo -e "${GREEN} Help:"
echo -e "${NORMAL}" "-package, create package ";
echo -e "${NORMAL}" "-start, start plugin";
echo -e "-h, help";
exit
fi
fi
echo -e "${BOLD} \t Plugin help script"
echo -e "${GREEN} \t Install requered package: ${NORMAL}"
echo "-----------------------------------------------"
apt-get install doxygen
apt-get install graphviz
apt-get install libboost-all-dev
# Build project
cd library
env -i git submodule update --init --recursive
cd ..
mkdir build
cd build
cmake ..
make -j4
if [ -n "$1" ]
then
if [[ $1 = "-start" ]]; then
echo -e "${GREEN} \t start plugins: ${NORMAL}"
./plugins
fi
fi
if [ -n "$1" ]
then
if [[ $1 = "-package" ]]; then
echo -e "${GREEN} \t CREATE_PACKAGE: ${NORMAL}"
cpack
fi
fi
echo "-----------------------------------------------"
echo -e "${GREEN}${BOLD}Done ${NORMAL}"