webmcp

annotate framework/bin/recursive-luac @ 424:553a1a9dbc4c

Fixed bug which was introduced during code-cleanup of <db_handle>:quote_string(...) function
author jbe
date Tue Jan 12 19:30:59 2016 +0100 (2016-01-12)
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