0
0
This commit is contained in:
Guy Baconniere
2021-08-24 15:04:25 +02:00
parent 91d591215a
commit 4bba30bd82
14 changed files with 113 additions and 38 deletions

14
C_08/git/ex04/main.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
rm -f a.out
find . -type f -name '*.h' -exec \
norminette -R CheckDefine {} \;
find . -type f -name '*.c' \! -name 'main.c' -exec \
norminette -R CheckForbiddenSourceHeader {} \;
echo
gcc -Wall -Wextra -Werror -o a.out *.c
#cpp *.c | tail -n 30
echo
echo $(basename $PWD):
./a.out "$@"
rm -f a.out