webmcp

annotate framework/bin/recursive-luac @ 382:810c020b0da4

Reverted changes to mondelefant_result_index and mondelefant_result_newindex C-functions (proxying of JSON document)
author jbe
date Mon Nov 16 18:31:49 2015 +0100 (2015-11-16)
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