summaryrefslogtreecommitdiffstats
path: root/module/web/compile_js.sh
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/compile_js.sh')
-rwxr-xr-xmodule/web/compile_js.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/module/web/compile_js.sh b/module/web/compile_js.sh
new file mode 100755
index 000000000..79adb1bed
--- /dev/null
+++ b/module/web/compile_js.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+for file in media/js/*.coffee
+do
+ echo "Compiling ${file}"
+ cat ${file} | coffee -cbs | yuicompressor --type js > ${file/.coffee/.js}
+done