devel/check-out-of-tree-build.sh: consistent naming, consistent quoting
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 3 Oct 2017 05:18:25 +0000 (08:18 +0300)
committerDavid Bremner <david@tethera.net>
Thu, 5 Oct 2017 10:40:36 +0000 (07:40 -0300)
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.

devel/check-out-of-tree-build.sh [moved from devel/out-of-tree-build-check.sh with 57% similarity]

similarity index 57%
rename from devel/out-of-tree-build-check.sh
rename to devel/check-out-of-tree-build.sh
index 984b4b5f65f50024892e5bbfc59f9ecc87a8ae8c..3e443ea25bf2da1dce67d22d9d5a0cebb1768306 100755 (executable)
@@ -4,12 +4,12 @@
 
 set -eu
 
-srcdir="$(cd "$(dirname "$0")"/.. && pwd)"
+srcdir=$(cd "$(dirname "$0")"/.. && pwd)
 builddir=$(mktemp -d)
 
-cd $builddir
+cd "$builddir"
 
-$srcdir/configure
+"$srcdir"/configure
 make "$@"
 
-rm -rf $builddir
+rm -rf "$builddir"