updated splint shell script for directory structure change.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# splint is a static code checker
|
# splint is a static code checker
|
||||||
[ -x /usr/bin/splint ] || exit 0
|
[ -x /usr/bin/splint ] || exit 0
|
||||||
|
|
||||||
INCLUDES="-Iinclude -Idemo/handler -Idemo/object -Iports/linux"
|
INCLUDES="-Iinclude -Iports/linux"
|
||||||
SETTINGS="-castfcnptr -fullinitblock -weak +posixlib"
|
SETTINGS="-castfcnptr -fullinitblock -weak +posixlib"
|
||||||
|
|
||||||
if [ ! -x .splintrc ]
|
if [ ! -x .splintrc ]
|
||||||
@@ -10,7 +10,7 @@ then
|
|||||||
echo ${INCLUDES} ${SETTINGS} > .splintrc
|
echo ${INCLUDES} ${SETTINGS} > .splintrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
directory=${1-`pwd`}
|
directory=${1-`pwd`}/src
|
||||||
for filename in $( find $directory -name '*.c' )
|
for filename in $( find $directory -name '*.c' )
|
||||||
do
|
do
|
||||||
echo splinting ${filename}
|
echo splinting ${filename}
|
||||||
|
|||||||
Reference in New Issue
Block a user