snapraid/makescan.sh
Andrea Mazzoleni 1f2c0fcc22 Get version from the git revision
This ensures to properly differntiate all the beta releases.
2015-11-24 19:34:21 +01:00

25 lines
369 B
Bash
Executable file

#!/bin/sh
#
rm -r cov-int
make distclean
if ! ./configure ; then
exit 1
fi
export PATH=$PATH:contrib/cov-analysis-linux-7.7.0.4/bin
if ! cov-build --dir cov-int make; then
exit 1
fi
REVISION=`git describe`
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