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
}
if [ ! -e builds ]; then
mkdir builds
fi
mkdir -p builds
if [ -e tmp]; then
if [ -e tmp ]; then
rm -rf tmp
fi
mkdir tmp
mkdir -p tmp
# Root path
workspace=$(pwd)
@ -75,12 +73,7 @@ copy_flt "." "tmp" "*.txt"
# Compile LUA files
pushd lua
mkdir ../tmp/lua
find . -type d | while read absfile; do
file="lua/$absfile"
echo "Creating $file..."
mkdir "../tmp/$file"
)
mkdir -p ../tmp/lua
find . -type f -name '*.lua' | while read absfile; do
file="lua/$absfile"
echo "Compiling $file..."