summaryrefslogtreecommitdiffstats
path: root/module/web/compile_js.sh
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-09 18:18:23 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-09 18:18:23 +0200
commit57cce481460efd7c9897c59652b544ef65063837 (patch)
treed3e8f4d1465e32c20028258d941c7eb56f15943d /module/web/compile_js.sh
parentadd filejungle.com, fix sharerapid.com (diff)
downloadpyload-57cce481460efd7c9897c59652b544ef65063837.tar.xz
updated js/mootools, some parts now coffeescript
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