commit
This commit is contained in:
14
ex.sh
Executable file
14
ex.sh
Executable 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
|
||||
Reference in New Issue
Block a user