aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-23 16:50:49 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-23 16:50:49 -0700
commit6e8e67dcd1a82b4beae132528e6e7b08d14edd09 (patch)
tree78ae998ec035905bf45d66a465bbfc6cb6dcc42c /tools
parent73abe82c6ca2cccd9b69e588dd5faefb9a36b60c (diff)
write out file in standalone call to js_optimizer.py
Diffstat (limited to 'tools')
-rw-r--r--tools/js_optimizer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py
index 12e76223..d6f8921c 100644
--- a/tools/js_optimizer.py
+++ b/tools/js_optimizer.py
@@ -377,5 +377,7 @@ if __name__ == '__main__':
sys.argv = sys.argv[:-1]
else:
extra_info = None
- run(sys.argv[1], sys.argv[2:], extra_info=extra_info)
+ out = run(sys.argv[1], sys.argv[2:], extra_info=extra_info)
+ import shutil
+ shutil.copyfile(out, sys.argv[1] + '.jsopt.js')