mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-29 22:24:12 +01:00
54aef07159
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.
15 lines
222 B
Bash
Executable file
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"
|