-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefense_v1.sh
More file actions
executable file
·36 lines (35 loc) · 1.45 KB
/
defense_v1.sh
File metadata and controls
executable file
·36 lines (35 loc) · 1.45 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
# **************************************************************************** #
# #
# ::: :::::::: #
# correct_set_up.sh :+: :+: :+: #
# +:+ +:+ +:+ #
# By: nboisde <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/10 14:30:33 by nboisde #+# #+# #
# Updated: 2020/09/11 09:35:48 by nboisde ### ########.fr #
# #
# **************************************************************************** #
# A Shell Script to Check and Print everything before testing...
echo "Welcome in nboisde shell script to check Repository Faster.\n"
echo "Starting Process"
sleep 1
find .
norminette -R CheckForbiddenSourceHeader ./ex*/*.c
sleep 2
echo "executing the comilation"
sleep 0.1
echo "."
sleep 0.5
gcc -Wall -Werror -Wextra -c ./ex*/*.c
find .*/*.o
sleep 1
cat ./ex*/*.c
find ./ex*/*.c > tmp.c
awk '{print "#include \""$0"\""}' tmp.c >> tmp.c
cat tmp.c | grep "^#" > main.c
echo "\nint main(void)\n{\n}" >> main.c
echo "main.c for tests -------------------\n"
cat main.c
rm tmp.c
rm ./*.o
ls -la