#!/bin/sh
`rm -rf allLua.zip`
`mkdir ./tempScripts`
`mkdir ./tempScripts/scripts`
`cp -a ./scripts/ ./tempScripts/scripts`
echo "拷贝中间文件"
`find ./tempScripts -name .svn|xargs rm -rf`
echo "删除svn"
filelist=`find ./tempScripts/scripts -name "*.lua"`
echo "生成luac"
for file in $filelist
do
#filetmp=`echo ${file%.*}`
`luac -o $file $file`
done
`zip allLua.zip -r ./tempScripts`
`rm -rf ./tempScripts/`
echo "完成"
lua_to_luac.sh