]> git.notmuchmail.org Git - notmuch/blob - check-out-of-tree-build.sh
3e443ea25bf2da1dce67d22d9d5a0cebb1768306
[notmuch] / check-out-of-tree-build.sh
1 #!/bin/sh
2 # test out-of-tree builds in a temp directory
3 # passes all args to make
4
5 set -eu
6
7 srcdir=$(cd "$(dirname "$0")"/.. && pwd)
8 builddir=$(mktemp -d)
9
10 cd "$builddir"
11
12 "$srcdir"/configure
13 make "$@"
14
15 rm -rf "$builddir"