#!/bin/bash

rm -rf enhancd-*

git clone https://github.com/b4b4r07/enhancd.git enhancd

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

mv enhancd enhancd-$VERSION

tar --exclude-vcs -cf enhancd-$VERSION.tar enhancd-$VERSION
plzip -9 enhancd-$VERSION.tar

rm -rf enhancd-$VERSION
