From b4f17cac01c7a692f18b0a39848adc1db6710486 Mon Sep 17 00:00:00 2001 From: icedream Date: Mon, 20 Oct 2014 13:14:14 +0200 Subject: [PATCH] Fix tmp folder --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 3d97124..73f99ff 100644 --- a/build.sh +++ b/build.sh @@ -46,8 +46,8 @@ copy_flt() { source="$1" target="$2" - find "$source" -type "d" | while read i; do mkdir -p "$target/$(reldir $source $i)"; done - find "$source" -name "$filter" -type "f" | while read i; do cp "$i" "$target/$(reldir $source $i)"; done + find "$source" -type "d" -not -path "./tmp/*" | while read i; do mkdir -p "$target/$(reldir $source $i)"; done + find "$source" -name "$filter" -type "f" -not -path "./tmp/*" | while read i; do cp "$i" "$target/$(reldir $source $i)"; done } mkdir -p builds @@ -71,6 +71,8 @@ copy_flt "." "tmp" "*.jpg" copy_flt "." "tmp" "*.png" copy_flt "." "tmp" "*.txt" +find tmp + # Compile LUA files pushd lua mkdir -p ../tmp/lua