chore(osx-deployment): fix tar-handling

Previously it would fail as '*' was in fact not substituted by the
subshell. Now I just take the brutal route, using find.

[skip ci]
This commit is contained in:
Sebastian Thiel
2015-05-11 06:32:30 +02:00
parent 296debda85
commit 5e5f0dcc66

View File

@@ -8,6 +8,6 @@ tar_file=${tar_basename}.tar.gz
dest_dir=build/$tar_basename
mkdir -p $dest_dir || exit $?
find -E gen -perm +0111 -type f -path "*/${rtype}/*" -not \( -name "*.*" -or -name "*script*" -or -regex ".*-[a-f0-9]{16}" \) | xargs -J % cp -v % $dest_dir || exit $?
(cd $dest_dir && tar -czvf ${tar_file} "*") || exit $?
(cd $dest_dir && tar -czvf ../${tar_file} `find . -perm +0111 -type f`) || exit $?
rm -Rfv $dest_dir || exit $?
echo Wrote build/$tar_file