Adding more ignores to addon.json. Also making build.sh slightly more readable.

master
Icedream 2014-12-11 06:33:06 +01:00
parent 3b67b8d125
commit 3b0dc2f4a9
2 changed files with 12 additions and 3 deletions

View File

@ -6,6 +6,11 @@
[ [
"*.git*", "*.git*",
"*.svn*", "*.svn*",
"addon.json" "builds*",
"tools*",
"*.bat",
"*.sh",
"*.md",
"LICENSE.txt"
] ]
} }

View File

@ -46,8 +46,12 @@ copy_flt() {
source="$1" source="$1"
target="$2" target="$2"
find "$source" -type "d" -not -path "$target" | while read i; do mkdir -p "$target/$(reldir $source $i)"; done find "$source" -type "d" -not -path "$target" | while read i; do
find "$source" -name "$filter" -type "f" -not -path "$target" | while read i; do cp "$i" "$target/$(reldir $source $i)"; done mkdir -p "$target/$(reldir $source $i)"
done
find "$source" -name "$filter" -type "f" -not -path "$target" | while read i; do
cp "$i" "$target/$(reldir $source $i)"
done
} }
mkdir -p builds mkdir -p builds