summaryrefslogtreecommitdiff
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-10 23:13:02 +0100
commit1c6b8dbe89d061f37a5f1e917e02128a5dd03c59 (patch)
treea96ca51bc53228894bb265b2e4b087c31b5409c9
parent6447b191eef8bf8f4942569e55c9a0f297c67a8e (diff)
Bump coverity version, add 32 bit target
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-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