scratch – Diff between revs 75 and 125

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 75 Rev 125
Line 19... Line 19...
19 do compile = -> 19 do compile = ->
20 unless fs.existsSync libDir 20 unless fs.existsSync libDir
21 fs.mkdirSync libDir 21 fs.mkdirSync libDir
22 unless fs.existsSync libDir+'/Exception' 22 unless fs.existsSync libDir+'/Exception'
23 fs.mkdirSync libDir+'/Exception' 23 fs.mkdirSync libDir+'/Exception'
24 toCompile = 'Yaml Utils Unescaper Pattern Parser Inline Escaper Dumper Exception/ParseException Exception/DumpException'.split ' ' 24 toCompile = 'Yaml Utils Unescaper Pattern Parser Inline Escaper Dumper Exception/ParseException Exception/ParseMore Exception/DumpException'.split ' '
25 do compileOne = -> 25 do compileOne = ->
26 name = toCompile.shift() 26 name = toCompile.shift()
27 outputDir = (if '/' in name then libDir+'/Exception' else libDir) 27 outputDir = (if '/' in name then libDir+'/Exception' else libDir)
28 exec 'coffee -b -o '+esc(outputDir)+' -c '+esc(srcDir+'/'+name+'.coffee'), (err, res) -> 28 exec 'coffee -b -o '+esc(outputDir)+' -c '+esc(srcDir+'/'+name+'.coffee'), (err, res) ->
29 if err then throw err 29 if err then throw err
Line 38... Line 38...
38 debugCompile = -> 38 debugCompile = ->
39 unless fs.existsSync libDebugDir 39 unless fs.existsSync libDebugDir
40 fs.mkdirSync libDebugDir 40 fs.mkdirSync libDebugDir
41 unless fs.existsSync libDebugDir+'/Exception' 41 unless fs.existsSync libDebugDir+'/Exception'
42 fs.mkdirSync libDebugDir+'/Exception' 42 fs.mkdirSync libDebugDir+'/Exception'
43 toCompile = 'Yaml Utils Unescaper Pattern Parser Inline Escaper Dumper Exception/ParseException Exception/DumpException'.split ' ' 43 toCompile = 'Yaml Utils Unescaper Pattern Parser Inline Escaper Dumper Exception/ParseException Exception/ParseMore Exception/DumpException'.split ' '
44 do compileOne = -> 44 do compileOne = ->
45 name = toCompile.shift() 45 name = toCompile.shift()
46 outputDir = (if '/' in name then libDebugDir+'/Exception' else libDebugDir) 46 outputDir = (if '/' in name then libDebugDir+'/Exception' else libDebugDir)
47 exec 'coffee -m -b -o '+esc(outputDir)+' -c '+esc(srcDir+'/'+name+'.coffee'), (err, res) -> 47 exec 'coffee -m -b -o '+esc(outputDir)+' -c '+esc(srcDir+'/'+name+'.coffee'), (err, res) ->
48 if err then throw err 48 if err then throw err