forked from Antonito/cpp_indie_studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_code.sh
More file actions
executable file
·45 lines (37 loc) · 841 Bytes
/
check_code.sh
File metadata and controls
executable file
·45 lines (37 loc) · 841 Bytes
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
#!/bin/bash
# Static analysis of all source code
# Dependencies:
# - cppcheck
CLEAR="\e[0m"
WHITE="\e[1;97m"
GREEN="\e[1;92m"
RED="\e[1;91m"
function check_dir {
printf "$WHITE""Checking %s:$CLEAR\n" "$1"
cd "$1";
printf "\e[1;93m";
./check_code.sh;
if [[ $? -eq 0 ]]
then
printf "$GREEN""--> OK"
else
printf "$RED""--> KO"
fi
printf "$CLEAR\n"
cd - &> /dev/null;
}
# Add your directories here
check_dir "libs/crypto/"
check_dir "libs/logger/"
check_dir "libs/memory/"
check_dir "libs/exceptions/"
check_dir "libs/network/"
check_dir "libs/multithread/"
check_dir "libs/packet/"
check_dir "libs/ini/"
check_dir "libs/pythonpp/"
check_dir "projects/server/connect_manager/"
check_dir "projects/server/game_server/"
check_dir "projects/server/client_test/"
check_dir "projects/pakpak/"
exit 0