#!/bin/sh
PATH=/v/openpkg/sw/lib/erlang19/erlang/bin:$PATH
rm -rf dalmatinerdb
git clone https://github.com/dalmatinerdb/dalmatinerdb
( cd dalmatinerdb
  HOME=`pwd`
  ./rebar3 get-deps
)
tar cf - dalmatinerdb | xz -9 >dalmatinerdb-`date '+%Y%m%d'`.tar.xz
rm -rf dalmatinerdb
