summaryrefslogtreecommitdiffstats
path: root/module/web/compile_js.sh
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-09 18:29:42 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-09 18:29:42 +0200
commit18eb66b6aec6abcb0c18f6fdb333b42484d656b0 (patch)
treee1c4271f3eec0289ece071b156ed92e2ddf31cfc /module/web/compile_js.sh
parentAdd tooltips to the Activity bar (diff)
parentupdated js/mootools, some parts now coffeescript (diff)
downloadpyload-18eb66b6aec6abcb0c18f6fdb333b42484d656b0.tar.xz
Merged in mineo/pyload (pull request #1)
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