X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=devel%2Fcheck-out-of-tree-build.sh;fp=devel%2Fcheck-out-of-tree-build.sh;h=3e443ea25bf2da1dce67d22d9d5a0cebb1768306;hb=54aef071590cb23f61da943daa29080cf7446696;hp=0000000000000000000000000000000000000000;hpb=288c3660d8798141d86faee30b4394a450dda0ba;p=notmuch diff --git a/devel/check-out-of-tree-build.sh b/devel/check-out-of-tree-build.sh new file mode 100755 index 00000000..3e443ea2 --- /dev/null +++ b/devel/check-out-of-tree-build.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"