Skip to content

Commit

Permalink
Updated build script and compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 1, 2012
1 parent 1c5b07f commit 4b9d8dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions utils/builder.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import os

rev = 10
source = '../src/Stats.js'
build = '../build/Stats.js'
header = '// stats.js r' + str( rev ) + ' - http://github.com/mrdoob/stats.js\n'
output = '../build/stats.min.js'

os.system( 'java -jar compiler/compiler.jar --language_in=ECMASCRIPT5 --js ' + source + ' --js_output_file ' + build )
os.system('java -jar compiler/compiler.jar --language_in=ECMASCRIPT5 --js ' + source + ' --js_output_file ' + output)

file = open( build, 'r' )
contents = file.read();
file.close()

file = open( build, 'w' )
file.write( header + contents )
file.close()
with open(output,'r') as f: text = f.read()
with open(output,'w') as f: f.write("// stats.js - http://github.com/mrdoob/stats.js\n" + text)
2 changes: 1 addition & 1 deletion utils/compiler/README
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ the parse tree data structures were extracted and modified
significantly for use by Google's JavaScript compiler.

Local Modifications: The packages have been renamespaced. All code not
relavant to parsing has been removed. A JSDoc parser and static typing
relevant to parsing has been removed. A JsDoc parser and static typing
system have been added.


Expand Down
Binary file modified utils/compiler/compiler.jar
Binary file not shown.

0 comments on commit 4b9d8dc

Please sign in to comment.