diff options
| author | Phil Crosby | 2014-08-12 08:28:42 -0700 | 
|---|---|---|
| committer | Phil Crosby | 2014-08-12 08:28:42 -0700 | 
| commit | be76291cfdbae4ce142efe2ab35795fff91e12e6 (patch) | |
| tree | 954c65df8cca963e20fe8803a636fb924d107deb /Cakefile | |
| parent | 4ab75878b3d59c0f970195bfae191781e0b9f5b3 (diff) | |
| parent | 06729270f7e3968d9a6bd6c8ec8d47f3afe97bd7 (diff) | |
| download | vimium-be76291cfdbae4ce142efe2ab35795fff91e12e6.tar.bz2 | |
Merge pull request #922 from camflint/FixBuildAndTestTasksOnWindows
Fix build and test tasks on Windows
Diffstat (limited to 'Cakefile')
| -rw-r--r-- | Cakefile | 6 | 
1 files changed, 6 insertions, 0 deletions
| @@ -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 | 
