openafs/src/helper-splint.sh.in
R. Lindsay Todd 4dd74ef182 splint-support-20030701
FIXES 1493

add splint support targets to makefiles
add support files
2003-07-02 02:03:17 +00:00

28 lines
771 B
Bash

#! /bin/sh
# Invoke "splint" with common options.
#
# This uses a common splint.cfg file. It will also look for a
# splint.cfg file in the current directory, using that instead, or a
# splint-append.cfg file, using that in addition to the common
# configuration.
TOP_SRCDIR=@TOP_SRCDIR@
HELPER_SPLINTCFG=@HELPER_SPLINTCFG@
cfargs="-f ${HELPER_SPLINTCFG}"
#
if [ -r splint-append.cfg ]; then
echo "Appending contents of splint-append.cfg to common splint options."
cfargs="$cfargs -f splint-append.cfg"
elif [ -r splint.cfg ]; then
echo "Overriding common splint options with splint.cfg"
cfargs="-f splint.cfg"
else
echo "No splint-append.cfg or splint.cfg, so using only common options."
fi
#
# Now run splint.
exec splint $cfargs -bad-flag "$@"