summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-09 07:45:56 +0000
committermidipix <writeonce@midipix.org>2020-01-09 07:49:46 +0000
commit3829568860afee04192b56b6f5cc3e539cc5dd65 (patch)
treef8c9e1a4f800b6439a5f9782e4a4e4b0f173ba05 /configure
parent79ca6ba994ae7296d54d9b5074e652b4fd2bcf35 (diff)
downloaddalist-3829568860afee04192b56b6f5cc3e539cc5dd65.tar.bz2
dalist-3829568860afee04192b56b6f5cc3e539cc5dd65.tar.xz
build system: configure: verify_source_directory(): disallow spaces in path.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 98a77db..76fc5b8 100755
--- a/configure
+++ b/configure
@@ -288,6 +288,13 @@ verify_source_directory()
{
output_step_prolog ${mb_script} 'verify_source_directory'
+ if [ _"$mb_source_dir" != _${mb_source_dir##* } ]; then
+ error_msg "source directory path contains spaces, aborting."
+ exit 1
+ fi
+
+ eval mb_source_dir=$(printf '%s' "$mb_source_dir")
+
if [ -z "$mb_source_dir" ]; then
if [ _$mb_require_source_dir = _yes ]; then
error_msg "$mb_package: specifying an external source directory is required."