3 # Make archives of Zyn-Fusion sources from GIT
5 if [ -z "$1" -o -n "$2" ] ; then
17 if [ -d mruby-zest-build/.git ] ; then
22 git clone --recursive https://github.com/mruby-zest/mruby-zest-build.git
25 git reset --hard "$commit"
29 version="$(git describe --tags | sed -e's/^v//;s/-/_/g')"
30 archive_name="mruby-zest-build-$version.tar"
32 echo "Building $archive_name..."
33 git archive --prefix mruby-zest-build/ -o ../$archive_name HEAD
34 git submodule --quiet foreach 'cd $toplevel/..; tar rf '"$archive_name"' mruby-zest-build/$path'