14 lines
293 B
Bash
Executable File
14 lines
293 B
Bash
Executable File
#!/bin/sh
|
|
# splint is a static code checker
|
|
[ -x /usr/bin/splint ] || exit 0
|
|
|
|
INCLUDES="-Iinclude -Idemo/handler -Idemo/object -Iports/linux"
|
|
|
|
directory=${1-`pwd`}
|
|
for filename in $( find $directory -name '*.c' )
|
|
do
|
|
echo splinting ${filename}
|
|
/usr/bin/splint ${INCLUDES} ${filename}
|
|
done
|
|
|