More build script fies (lua compiler)
parent
25f9767509
commit
736318a730
10
build.sh
10
build.sh
|
@ -77,11 +77,13 @@ mkdir -p ../tmp/lua
|
|||
find . -type f -name '*.lua' | while read absfile; do
|
||||
file="lua/$absfile"
|
||||
echo "Compiling $file..."
|
||||
luac52 -o "../tmp/$file" "$absfile" || (
|
||||
echo "Could not compile $file, only copying..."
|
||||
cp "$absfile" "../tmp/$file"
|
||||
luac52 -o "../tmp/$file.luac" "$absfile" && (
|
||||
rm "/tmp/$file"
|
||||
mv "/tmp/$file.luac" "/tmp/$file"
|
||||
) || (
|
||||
echo "Could not compile $file, leaving as is."
|
||||
)
|
||||
)
|
||||
done
|
||||
popd
|
||||
|
||||
# Create the GMA file
|
||||
|
|
Loading…
Reference in New Issue