aboutsummaryrefslogtreecommitdiffstats
path: root/Cakefile
diff options
context:
space:
mode:
authorspccdt2013-09-21 14:40:29 -0400
committerspccdt2014-06-08 16:38:02 -0400
commit06729270f7e3968d9a6bd6c8ec8d47f3afe97bd7 (patch)
tree8641bfab1a399345c9a2b3049ce0979ba24dc639 /Cakefile
parentb78cf8771689c378af62b01746df474f6c8dde5d (diff)
downloadvimium-06729270f7e3968d9a6bd6c8ec8d47f3afe97bd7.tar.bz2
Fix build and test on Windows.
Diffstat (limited to 'Cakefile')
-rw-r--r--Cakefile6
1 files changed, 6 insertions, 0 deletions
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