webmcp

view framework/bin/recursive-luac @ 2:72860d232f32

Version 1.0.2

Fixed bug with explicit garbage collection (requests > 256kB caused an error)

Views prefixed with an underscore can't be called externally

ui.paginate now displays the last page, if the selected page number is too high.
author jbe/bsw
date Thu Dec 10 12:00:00 2009 +0100 (2009-12-10)
parents 9fdfb27f8e67
children 30391b40722f
line source
1 #!/bin/sh
2 src=$1
3 dst=$2
4 if [ "$src" = "" -o "$dst" = "" ]
5 then
6 echo "Usage: recursive-luac <source-dir> <destination-dir>"
7 exit 1
8 fi
9 cp -RL "$src" "$dst"
10 # TODO: handle whitespace in directory or file names correctly
11 for file in `find "$dst" -name '*.lua'`
12 do
13 luac -s -o "$file" "$file"
14 done

Impressum / About Us