summaryrefslogtreecommitdiff
path: root/coverity.sh
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-03-10 22:21:26 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-03-30 23:07:43 +0200
commit5e682a087502b9dd285e829f9814eaa430070a6d (patch)
treee8bcfbcaefcdb008d99427781e0375f20716f779 /coverity.sh
parente5a6ce28bf1a025b332c63a002f4199f015d77ae (diff)
Bump coverity version, add 32 bit target
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'coverity.sh')
-rwxr-xr-xcoverity.sh21
1 files changed, 18 insertions, 3 deletions
diff --git a/coverity.sh b/coverity.sh
index c2c0b89..8407ffa 100755
--- a/coverity.sh
+++ b/coverity.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-COVERITY_PATH="$HOME/Downloads/cov-analysis-linux64-2020.09"
+COVERITY_PATH="$HOME/Downloads/cov-analysis-linux64-2021.12.1"
TOKEN=$(cat "$HOME/.coverity/squashfs-tools-ng")
EMAIL=$(git log --follow --pretty=format:"%ae" -- coverity.sh | head -n 1)
@@ -9,8 +9,23 @@ VERSION=$(grep AC_INIT configure.ac | grep -o \\[[0-9.]*\\] | tr -d [])
export PATH="$COVERITY_PATH/bin:$PATH"
-./autogen.sh
-./configure
+if [ $# -eq 1 ]; then
+ case "$1" in
+ --32bit)
+ ./autogen.sh
+ ./configure CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32"
+ DESCRIPTION="$DESCRIPTION-32bit"
+ ;;
+ *)
+ echo "Unknown option `$1`" >&2
+ exit 1
+ ;;
+ esac
+else
+ ./autogen.sh
+ ./configure
+fi
+
make clean
cov-build --dir cov-int make -j
tar czvf squashfs-tools-ng.tgz cov-int