From: Jani Nikula Date: Mon, 11 Sep 2017 17:17:47 +0000 (+0300) Subject: devel: add script to test out-of-tree builds X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=379de73603d98da6a9cc95a9af914f98bd393e95;p=notmuch.git devel: add script to test out-of-tree builds Something I used for 'git bisect run', but we should really add this as part of our process. --- diff --git a/devel/out-of-tree-build-check.sh b/devel/out-of-tree-build-check.sh new file mode 100755 index 00000000..984b4b5f --- /dev/null +++ b/devel/out-of-tree-build-check.sh @@ -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