import sys
import os

output = '../build/Tween.js';

# os.system("java -jar yuicompressor-2.4.2.jar ../src/Tween.js -o ../build/Tween.js --charset utf-8 -v");
os.system("java -jar compiler.jar --js ../src/Tween.js --js_output_file ../build/Tween.js")

# HEADER

string = "// Tween.js - http://github.com/sole/tween.js\n"

src_file = open(output,'r')
string += src_file.read()

dep_file = open(output,'w')
dep_file.write(string)
dep_file.close()

import sys
import os

output = '../build/tween.js';

# os.system("java -jar yuicompressor-2.4.2.jar ../src/Tween.js -o ../build/Tween.js --charset utf-8 -v");
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()

Update packer system to include REVISION number too
Update packer system to include REVISION number too

  import sys
  import os
  
- output = '../build/Tween.js';
+ output = '../build/tween.js';
  
  # os.system("java -jar yuicompressor-2.4.2.jar ../src/Tween.js -o ../build/Tween.js --charset utf-8 -v");
- os.system("java -jar compiler.jar --js ../src/Tween.js --js_output_file ../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 - http://github.com/sole/tween.js\n"
+ 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()
  
Update packer system to include REVISION number too
## Code Before:
import sys
import os

output = '../build/Tween.js';

# os.system("java -jar yuicompressor-2.4.2.jar ../src/Tween.js -o ../build/Tween.js --charset utf-8 -v");
os.system("java -jar compiler.jar --js ../src/Tween.js --js_output_file ../build/Tween.js")

# HEADER

string = "// Tween.js - http://github.com/sole/tween.js\n"

src_file = open(output,'r')
string += src_file.read()

dep_file = open(output,'w')
dep_file.write(string)
dep_file.close()

## Instruction:
Update packer system to include REVISION number too
## Code After:
import sys
import os

output = '../build/tween.js';

# os.system("java -jar yuicompressor-2.4.2.jar ../src/Tween.js -o ../build/Tween.js --charset utf-8 -v");
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()
