aboutsummaryrefslogtreecommitdiffstats
path: root/Cakefile
diff options
context:
space:
mode:
authorPhil Crosby2014-08-12 08:28:42 -0700
committerPhil Crosby2014-08-12 08:28:42 -0700
commitbe76291cfdbae4ce142efe2ab35795fff91e12e6 (patch)
tree954c65df8cca963e20fe8803a636fb924d107deb /Cakefile
parent4ab75878b3d59c0f970195bfae191781e0b9f5b3 (diff)
parent06729270f7e3968d9a6bd6c8ec8d47f3afe97bd7 (diff)
downloadvimium-be76291cfdbae4ce142efe2ab35795fff91e12e6.tar.bz2
Merge pull request #922 from camflint/FixBuildAndTestTasksOnWindows
Fix build and test tasks on Windows
Diffstat (limited to 'Cakefile')
-rw-r--r--Cakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Cakefile b/Cakefile
index bae79009..0fa75e24 100644
--- a/Cakefile
+++ b/Cakefile
@@ -1,8 +1,14 @@
+util = require "util"
fs = require "fs"
path = require "path"
child_process = require "child_process"
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