#!/bin/sh
rm -rf leofs
git clone https://github.com/leo-project/leofs.git
( cd leofs
  git checkout -b 1.3.8 remotes/origin/develop
  ./rebar get-deps
  ./git_checkout.sh develop
)
tar cvf - --exclude .git leofs | xz -9 >leofs-`date '+%Y%m%d'`.tar.xz
rm -rf leofs
