From 06729270f7e3968d9a6bd6c8ec8d47f3afe97bd7 Mon Sep 17 00:00:00 2001 From: spccdt Date: Sat, 21 Sep 2013 14:40:29 -0400 Subject: Fix build and test on Windows. --- Cakefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Cakefile') diff --git a/Cakefile b/Cakefile index d38fa425..85e9ff24 100644 --- a/Cakefile +++ b/Cakefile @@ -1,9 +1,15 @@ +util = require "util" fs = require "fs" path = require "path" child_process = require "child_process" {Utils} = require './lib/utils' spawn = (procName, optArray, silent=false) -> + if process.platform is "win32" + # if win32, prefix arguments with "/c {original command}" + # e.g. "coffee -c c:\git\vimium" becomes "cmd.exe /c coffee -c c:\git\vimium" + optArray.unshift "/c", procName + procName = "cmd.exe" proc = child_process.spawn procName, optArray unless silent proc.stdout.on 'data', (data) -> process.stdout.write data -- cgit v1.2.3