merging in chetan51's Node 0.2.5 compatibility patch. Homebrew timestamps.

This commit is contained in:
Jeremy Ashkenas 2011-01-18 23:28:37 -05:00
parent f35ea486a7
commit 1f2f55bea3
2 changed files with 5 additions and 3 deletions

View File

@ -196,7 +196,7 @@
if (err) {
return printLine(err.message);
} else if (opts.compile && opts.watch) {
return console.log("compiled " + source);
return console.log("" + ((new Date).toTimeString()) + " - compiled " + source);
}
});
};

View File

@ -162,8 +162,10 @@ writeJs = (source, js, base) ->
compile = ->
js = ' ' if js.length <= 0
fs.writeFile jsPath, js, (err) ->
if err then printLine err.message
else if opts.compile and opts.watch then console.log "compiled #{source}"
if err
printLine err.message
else if opts.compile and opts.watch
console.log "#{(new Date).toTimeString()} - compiled #{source}"
path.exists dir, (exists) ->
if exists then compile() else exec "mkdir -p #{dir}", compile