webmcp

annotate framework/bin/recursive-luac @ 406:36f0d1d5ed7d

Further fixes in mondelefant.connect{...} (including proper handling of garbage collection in case of memory allocation errors); Code cleanup (use luaL_setmetatable, which is available since Lua 5.2)
author jbe
date Wed Jan 06 18:59:58 2016 +0100 (2016-01-06)
parents 30391b40722f
children
rev   line source
jbe/bsw@0 1 #!/bin/sh
jbe@116 2 luacbin=$1
jbe@116 3 src=$2
jbe@116 4 dst=$3
jbe/bsw@0 5 if [ "$src" = "" -o "$dst" = "" ]
jbe/bsw@0 6 then
jbe@116 7 echo "Usage: recursive-luac <luac-binary> <source-dir> <destination-dir>"
jbe/bsw@0 8 exit 1
jbe/bsw@0 9 fi
jbe/bsw@0 10 cp -RL "$src" "$dst"
jbe/bsw@0 11 # TODO: handle whitespace in directory or file names correctly
jbe/bsw@0 12 for file in `find "$dst" -name '*.lua'`
jbe/bsw@0 13 do
jbe@116 14 $1 -s -o "$file" "$file"
jbe/bsw@0 15 done

Impressum / About Us