From 25f97675094f0dae04f7c4e441a7040ecc0b24a5 Mon Sep 17 00:00:00 2001 From: icedream Date: Mon, 20 Oct 2014 12:41:01 +0200 Subject: [PATCH] Fix build script (typos + directories) --- build.sh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/build.sh b/build.sh index 337875c..067ccee 100644 --- a/build.sh +++ b/build.sh @@ -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..."