mirror of
https://github.com/tweenjs/tween.js.git
synced 2025-12-08 20:16:12 +00:00
21 lines
446 B
Python
21 lines
446 B
Python
import sys
|
|
import os
|
|
|
|
output = '../build/Tween.js';
|
|
|
|
os.system("java -jar compiler.jar --js ../src/Tween.js --js_output_file %s" % (output))
|
|
|
|
# HEADER
|
|
|
|
with open(os.path.join('..', 'REVISION'), 'r') as handle:
|
|
revision = handle.read().rstrip()
|
|
|
|
string = "// tween.js r%s - http://github.com/sole/tween.js\n" % (revision)
|
|
|
|
src_file = open(output,'r')
|
|
string += src_file.read()
|
|
|
|
dep_file = open(output,'w')
|
|
dep_file.write(string)
|
|
dep_file.close()
|