notmuch/devel/out-of-tree-build-check.sh
Jani Nikula 379de73603 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.
2017-10-02 07:25:06 -03:00

15 lines
218 B
Bash
Executable file

#!/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