#!/bin/bash

rm -rf audex-*.tar.?z*

git clone https://invent.kde.org/multimedia/audex.git audex

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

mv audex audex-$VERSION

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

rm -rf audex-$VERSION
