coverity_check.sh 590 B

123456789101112131415161718192021222324252627282930
  1. #! /bin/sh
  2. ls src/civetweb.c
  3. if [ "$?" = "0" ]; then
  4. echo "Building files for coverity check ..."
  5. else
  6. echo "Run this script from the root directory of project!" 1>&2
  7. echo "username@hostname:/somewhere/civetweb$ resources/coverity_check.sh" 1>&2
  8. exit 1
  9. fi
  10. rm -rf cov_int/
  11. make clean
  12. ../cov-analysis-linux64-7.6.0/bin/cov-build --dir cov-int make WITH_IPV6=1 WITH_WEBSOCKET=1 WITH_LUA_SHARED=1
  13. rm coverity_check.tgz
  14. tar czvf coverity_check.tgz cov-int
  15. ls coverity_check.tgz
  16. if [ "$?" = "0" ]; then
  17. echo "... done"
  18. else
  19. echo "No coverity_check.tgz file" 1>&2
  20. exit 1
  21. fi
  22. exit 0