devel/check-out-of-tree-build.sh: consistent naming, consistent quoting
[notmuch] / devel / 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"