2013-06-24 08:24:19 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from lib.util import *
|
|
|
|
|
|
|
|
|
|
|
|
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
input_file = sys.argv[1]
|
|
|
|
output_dir = os.path.dirname(sys.argv[2])
|
|
|
|
|
2013-07-01 10:04:15 +00:00
|
|
|
coffee = os.path.join(SOURCE_ROOT, 'node_modules', 'coffee-script', 'bin',
|
|
|
|
'coffee')
|
2013-08-08 08:24:27 +00:00
|
|
|
subprocess.check_call(['node', coffee, '-c', '-o', output_dir, input_file])
|
2013-06-24 08:24:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
sys.exit(main())
|