beginnings of a build script

This commit is contained in:
Jeremy Ashkenas
2010-02-16 01:04:48 -05:00
parent fa63288f52
commit 2f389f1d51
6 changed files with 47 additions and 20 deletions

View File

@@ -36,6 +36,12 @@ exports.run: ->
return require './repl' if options.interactive
return puts coffee.compile sources[0] if options.eval
usage() unless sources.length
separator: sources.indexOf '--'
flags: []
if separator >= 0
flags: sources[(separator + 1)...sources.length]
sources: sources[0...separator]
process.ARGV = flags
compile_scripts()
this