diff options
| author | spccdt | 2013-09-21 14:40:29 -0400 | 
|---|---|---|
| committer | spccdt | 2014-06-08 16:38:02 -0400 | 
| commit | 06729270f7e3968d9a6bd6c8ec8d47f3afe97bd7 (patch) | |
| tree | 8641bfab1a399345c9a2b3049ce0979ba24dc639 /Cakefile | |
| parent | b78cf8771689c378af62b01746df474f6c8dde5d (diff) | |
| download | vimium-06729270f7e3968d9a6bd6c8ec8d47f3afe97bd7.tar.bz2 | |
Fix build and test on Windows.
Diffstat (limited to 'Cakefile')
| -rw-r--r-- | Cakefile | 6 | 
1 files changed, 6 insertions, 0 deletions
| @@ -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 | 
