Skip to content

Commit

Permalink
fix windows line break
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed Apr 3, 2013
1 parent 9af93ae commit 8c19e53
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cakefile
@@ -1,5 +1,5 @@
{exec, spawn} = require 'child_process'
Rehab = require './lib/index'
Rehab = require './lib/rehab'

build = ->
console.log "Building project from src/*.coffee to lib/rehab.js"
Expand Down
16 changes: 14 additions & 2 deletions lib/rehab.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/rehab.coffee
@@ -1,5 +1,6 @@
#_require ./tsort


wrench = require('wrench')
fs = require('fs')
path = require('path')
Expand Down Expand Up @@ -71,4 +72,6 @@ module.exports = class Rehab
content = fs.readFileSync(fileName, 'utf8')
lines = content.split '\n'
for line in lines
line = line.slice(0, -1) if line.slice(-1) == '\r'
line = line.trim()
depGraph.push [fileName, @parseRequiredLine(line)] if line.beginsWith @REQ_TOKEN

0 comments on commit 8c19e53

Please sign in to comment.