From: Tomi Ollila Date: Tue, 3 Oct 2017 05:18:25 +0000 (+0300) Subject: devel/check-out-of-tree-build.sh: consistent naming, consistent quoting X-Git-Tag: 0.26_rc0~117 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=54aef071590cb23f61da943daa29080cf7446696 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. --- 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" diff --git a/devel/out-of-tree-build-check.sh b/devel/out-of-tree-build-check.sh deleted file mode 100755 index 984b4b5f..00000000 --- a/devel/out-of-tree-build-check.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/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