Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Build system: support spaces in directory names
Browse files Browse the repository at this point in the history
  • Loading branch information
masuidrive authored and ry committed Feb 10, 2010
1 parent 9f6f19d commit 3337e9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wscript
Expand Up @@ -91,7 +91,7 @@ def conf_subproject (conf, subdir, command=None):
copytree(src, default_tgt, True)

if command:
if os.system("cd %s && %s" % (default_tgt, command)) != 0:
if os.system("cd \"%s\" && %s" % (default_tgt, command)) != 0:
conf.fatal("Configuring %s failed." % (subdir))

debug_tgt = join(conf.blddir, "debug", subdir)
Expand Down Expand Up @@ -191,7 +191,7 @@ def build_udns(bld):

static_lib = bld.env["staticlib_PATTERN"] % "udns"

rule = 'cd %s && make'
rule = 'cd "%s" && make'

default = bld.new_task_gen(
target= join("deps/udns", static_lib),
Expand Down Expand Up @@ -234,7 +234,7 @@ def v8_cmd(bld, variant):
else:
mode = "debug"

cmd_R = 'python %s -C %s -Y %s visibility=default mode=%s %s library=static snapshot=on'
cmd_R = 'python "%s" -C "%s" -Y "%s" visibility=default mode=%s %s library=static snapshot=on'

cmd = cmd_R % ( scons
, bld.srcnode.abspath(bld.env_of_name(variant))
Expand Down

0 comments on commit 3337e9d

Please sign in to comment.