mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
073d05eec3
commit
379de73603
1 changed files with 15 additions and 0 deletions
15
devel/out-of-tree-build-check.sh
Executable file
15
devel/out-of-tree-build-check.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue