From 5103b3c23879797023c79254d0bae83ee4eb6a01 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 28 Mar 2017 11:02:07 +0200 Subject: trivial only --- coverity/build/build.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 coverity/build/build.sh (limited to 'coverity') diff --git a/coverity/build/build.sh b/coverity/build/build.sh new file mode 100644 index 00000000..332aee91 --- /dev/null +++ b/coverity/build/build.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +function cleanup() { + killall cc1 cc1plus collect2 lto1 lto-wrapper gcc g++ i686-w64-mingw32-gcc i686-w64-mingw32-{c++,g++} 2>/dev/null + rm -f "$myfile" +} + +function signal() { + set +e + trap '' EXIT + echo "error: $1" 1>&2 + cleanup + exit 1 +} + +for k in HUP INT QUIT ILL BUS FPE SEGV PIPE; do + trap "signal 'got fatal signal SIG'$k" SIG"$k" +done + +trap 'signal "fatal return $?"' EXIT + +set -e + +mydate="$(date --iso-8601=minutes)" +mydir="$(dirname -- "$0")" +myfile="$(pwd)/opentrack-"$mydate".tar.xz" + +cd "$mydir" +for k in opencv aruco libovr-025 libovr-042 libovr-080; do + ninja -C "./$k" +done + +ninja -C ./libovr-140 install + +cd "./opentrack" + +cmake . +ninja clean +cov-build --dir cov-int ninja +tar Jcf ../opentrack-"$mydate".tar.xz cov-int +trap '' EXIT +exit 0 -- cgit v1.2.3