#!/bin/bash

rm -rf Charm-*

git clone https://github.com/KDAB/Charm.git Charm

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

mv Charm Charm-$VERSION

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

rm -rf Charm-$VERSION
