~jorge/snapraid/upstream

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
# Run the Coverity Scan static analyzer
#

rm -r cov-int

make distclean

# Reconfigure (with force) to get the latest revision from git
autoreconf -f

if ! ./configure ; then
	exit 1
fi

export PATH=$PATH:contrib/cov-analysis-linux64-2017.07/bin

if ! cov-build --dir cov-int make; then
	exit 1
fi

REVISION=`sh autover.sh`

tar czf snapraid-$REVISION.tgz cov-int

rm -r cov-int

echo snapraid-$REVISION.tgz ready to upload to https://scan.coverity.com/projects/1986/builds/new