#!/bin/sh -x
rm -rf surrealdb
git clone --depth 1 https://github.com/surrealdb/surrealdb surrealdb
(   cd surrealdb
    HOME=`pwd`
    cargo fetch -v
)
tar cvf - --exclude .git surrealdb | xz -9 >surrealdb-`date '+%Y%m%d'`.tar.xz
rm -rf surrealdb
