summaryrefslogtreecommitdiffhomepage
path: root/coverity/build
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-28 11:02:07 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-03-28 11:08:57 +0200
commit5103b3c23879797023c79254d0bae83ee4eb6a01 (patch)
treee6d6fff66d180b4f88e52852fae4bc8ea93dda9e /coverity/build
parent7337f89f4d69cc0e5fe3a72f9f6773ecf9b24cc5 (diff)
trivial only
Diffstat (limited to 'coverity/build')
-rw-r--r--coverity/build/build.sh42
1 files changed, 42 insertions, 0 deletions
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