snapraid/makescan.sh

30 lines
493 B
Bash
Raw Permalink Normal View History

2014-11-09 22:36:13 +01:00
#!/bin/sh
#
# Run the Coverity Scan static analyzer
#
2014-11-09 22:36:13 +01:00
rm -r cov-int
make distclean
# Reconfigure (with force) to get the latest revision from git
autoreconf -f
2014-11-09 22:36:13 +01:00
if ! ./configure ; then
exit 1
fi
2025-10-06 15:33:32 +02:00
export PATH=$PATH:contrib/cov-analysis-linux64-2024.12.1/bin
2014-11-09 22:36:13 +01:00
if ! cov-build --dir cov-int make; then
exit 1
fi
REVISION=`sh autover.sh`
2014-11-09 22:36:13 +01:00
tar czf snapraid-$REVISION.tgz cov-int
2014-11-09 22:36:13 +01:00
rm -r cov-int
2014-11-09 22:36:13 +01:00
echo snapraid-$REVISION.tgz ready to upload to https://scan.coverity.com/projects/1986/builds/new