Permalink
Browse files

Reverting edit to Cakefile

  • Loading branch information...
lmaccherone committed Jan 10, 2012
1 parent 8bd9d9f commit e617446bce98d52e381cebf81d885b1548ba5aca
Showing with 6 additions and 2 deletions.
  1. +6 −2 Cakefile
View
@@ -7,13 +7,17 @@ by jashkenas
option '-p', '--prefix [DIR]', 'set the installation prefix for `cake install`'
+task 'build', 'continually build the coffeedoc library with --watch', ->
+ coffee = spawn 'coffee', ['-cw', '-o', 'lib', 'src']
+ coffee.stdout.on 'data', (data) -> console.log data.toString().trim()
+
task 'install', 'install the `coffeedoc` command into /usr/local (or --prefix)', (options) ->
base = options.prefix or '/usr/local'
lib = base + '/lib/coffeedoc'
exec([
'mkdir -p ' + lib
- 'cp -rf bin README.md resources src vendor ' + lib
+ 'cp -rf bin README.md resources lib ' + lib
'ln -sf ' + lib + '/bin/coffeedoc ' + base + '/bin/coffeedoc'
].join(' && '), (err, stdout, stderr) ->
- if err then console.error stderr
+ if err then console.error stderr
)

0 comments on commit e617446

Please sign in to comment.