5 echo "usage is: ${0##*/} <path to coverity scan> <extra compiler options>"
6 echo "e.g. \"${0##*/} \"/usr/local/bin/coverity\" \"-DLTM_DESC -I/path/to/libtommath/\"\""
16 myCflags
="$myCflags -O2 ${2}"
17 myCflags
="$myCflags -pipe -Werror -Wpointer-arith -Winit-self -Wextra -Wall -Wformat -Wformat-security"
19 CFLAGS
="$myCflags" cov-build
--dir cov-int
make -f makefile.unix
$MAKE_OPTS IGNORE_SPEED
=1 1>gcc_1.txt
28 tar caf libtomcrypt.lzma cov-int
30 mytoken
=$
(cat .coverity_token
)
31 mymail
=$
(cat .coverity_mail
)
32 myversion
=$
(git describe
--dirty)
34 curl
-k --form project
=libtomcrypt \
35 --form token
=${mytoken} \
36 --form email
=${mymail} \
37 --form file=@libtomcrypt.lzma \
38 --form version
=\"${myversion}\" \
39 --form description
="\"libtomcrypt version ${myversion}\"" \
40 https
://scan.coverity.com
/builds?project
=libtom
%2Flibtomcrypt