3 # Invoke "splint" with common options.
5 # This uses a common splint.cfg file. It will also look for a
6 # splint.cfg file in the current directory, using that instead, or a
7 # splint-append.cfg file, using that in addition to the common
11 TOP_SRCDIR
=@TOP_SRCDIR@
12 HELPER_SPLINTCFG
=@HELPER_SPLINTCFG@
14 cfargs
="-f ${HELPER_SPLINTCFG}"
16 if [ -r splint-append.cfg
]; then
17 echo "Appending contents of splint-append.cfg to common splint options."
18 cfargs
="$cfargs -f splint-append.cfg"
19 elif [ -r splint.cfg
]; then
20 echo "Overriding common splint options with splint.cfg"
21 cfargs
="-f splint.cfg"
23 echo "No splint-append.cfg or splint.cfg, so using only common options."
27 exec splint
$cfargs -bad-flag "$@"