Blob Blame History Raw
#!/bin/bash

APP=pgmodeler
VER=0.8.2_beta

rm -rf $APP-$VER
git clone -b 0.8.2-beta --depth 1 https://github.com/pgmodeler/pgmodeler.git $APP-$VER
GHASH=$( git --git-dir ./$APP-$VER/.git reflog | cut -d' ' -f1 )
rm -rf $APP-$VER/.git
TARF=$APP-${VER}.git.$GHASH.tar.xz
tar -cJf $TARF $APP-$VER
echo "[$TARF] created"