Fix build script (typos + directories)

master
Icedream 2014-10-20 12:41:01 +02:00
parent 3aaf4a4e7b
commit 25f9767509
1 changed files with 4 additions and 11 deletions

View File

@ -50,14 +50,12 @@ copy_flt() {
find "$source" -name "$filter" -type "f" | while read i; do cp "$i" "$target/$(reldir $source $i)"; done find "$source" -name "$filter" -type "f" | while read i; do cp "$i" "$target/$(reldir $source $i)"; done
} }
if [ ! -e builds ]; then mkdir -p builds
mkdir builds
fi
if [ -e tmp ]; then if [ -e tmp ]; then
rm -rf tmp rm -rf tmp
fi fi
mkdir tmp mkdir -p tmp
# Root path # Root path
workspace=$(pwd) workspace=$(pwd)
@ -75,12 +73,7 @@ copy_flt "." "tmp" "*.txt"
# Compile LUA files # Compile LUA files
pushd lua pushd lua
mkdir ../tmp/lua mkdir -p ../tmp/lua
find . -type d | while read absfile; do
file="lua/$absfile"
echo "Creating $file..."
mkdir "../tmp/$file"
)
find . -type f -name '*.lua' | while read absfile; do find . -type f -name '*.lua' | while read absfile; do
file="lua/$absfile" file="lua/$absfile"
echo "Compiling $file..." echo "Compiling $file..."