#!/bin/sh
rm -rf binaryen
mkdir binaryen
git clone --depth 1 https://github.com/WebAssembly/binaryen/
( cd binaryen
  git submodule init
  git submodule update
)
tar cf - --exclude .git binaryen | xz -9 >binaryen-`date '+%Y%m%d'`.tar.xz
rm -rf binaryen
