0
0
This commit is contained in:
2021-08-21 20:25:38 +02:00
parent 7d29fa524b
commit 3e92d6c4a6
6 changed files with 88 additions and 35 deletions

14
ex.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
ex=${1:?$0 <ex??>}
shift
rm -f a.out
find ../${ex} -type f -name '*.h' -exec \
norminette -R CheckDefine {} \;
find ../${ex} -type f -name '*.c' \! -name 'main.c' -exec \
norminette -R CheckForbiddenSourceHeader {} \;
#gcc ${ex}.c
gcc -Wall -Wextra -Werror -o a.out ${ex}.c
echo ${ex}:
./a.out "$@"
rm -f a.out