Fixed directories with spaces causing problems during builds.

This commit is contained in:
Dominik Picheta 2013-10-05 19:01:48 +01:00
commit 871a2c90b4

View file

@ -217,7 +217,7 @@ proc buildFromDir(pkgInfo: TPackageInfo, paths: seq[string]) =
for bin in pkgInfo.bin: for bin in pkgInfo.bin:
echo("Building ", pkginfo.name, "/", bin, " using ", pkgInfo.backend, echo("Building ", pkginfo.name, "/", bin, " using ", pkgInfo.backend,
" backend...") " backend...")
doCmd("nimrod $# -d:release $#" % doCmd("nimrod $# -d:release \"$#\"" %
[pkgInfo.backend, args & realDir / bin.changeFileExt("nim")]) [pkgInfo.backend, args & realDir / bin.changeFileExt("nim")])
proc installFromDir(dir: string, latest: bool): string = proc installFromDir(dir: string, latest: bool): string =