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