]> git.notmuchmail.org Git - notmuch/blobdiff - devel/check-out-of-tree-build.sh
devel/check-out-of-tree-build.sh: consistent naming, consistent quoting
[notmuch] / devel / check-out-of-tree-build.sh
diff --git a/devel/check-out-of-tree-build.sh b/devel/check-out-of-tree-build.sh
new file mode 100755 (executable)
index 0000000..3e443ea
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+# test out-of-tree builds in a temp directory
+# passes all args to make
+
+set -eu
+
+srcdir=$(cd "$(dirname "$0")"/.. && pwd)
+builddir=$(mktemp -d)
+
+cd "$builddir"
+
+"$srcdir"/configure
+make "$@"
+
+rm -rf "$builddir"