notmuch/devel/check-out-of-tree-build.sh
Tomi Ollila 54aef07159 devel/check-out-of-tree-build.sh: consistent naming, consistent quoting
Renamed from out-of-tree-build-check.sh to be consistent with
other files in this directory.

Fixed quoting in "$srcdir" usage for additional robustness, other
quoting changes for consistency.
2017-10-05 07:40:36 -03:00

15 lines
222 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"