]> git.notmuchmail.org Git - notmuch/blob - devel/out-of-tree-build-check.sh
devel: add script to test out-of-tree builds
[notmuch] / devel / out-of-tree-build-check.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