#!/bin/bash

rm -rf vbox-runner-*

git clone https://github.com/alvanieto/vbox-runner.git vbox-runner

cd vbox-runner
VERSION=$(git log --pretty=format:"git_%cd_%h" --date=format:"%Y%m%d" | head -n 1)
cd ..

mv vbox-runner vbox-runner-$VERSION

tar --exclude-vcs -cf vbox-runner-$VERSION.tar vbox-runner-$VERSION
plzip -9 vbox-runner-$VERSION.tar

rm -rf vbox-runner-$VERSION
