File get_latest_git_and_do_tarball of Package virt-test

#!/bin/sh
VERSION=0.1
NAME=virt-test

rm -vrf $NAME-$VERSION

echo "- git clone "
git clone https://github.com/autotest/$NAME.git

echo "- moving to $NAME-$VERSION"
mv $NAME $NAME-$VERSION

echo "- Cleaning the dir"
rm -rf $NAME-$VERSION/.git

echo "- doing tarball"
tar cfj $NAME-$VERSION.tar.bz2 $NAME-$VERSION

echo "- Removing the dir $NAME-$VERSION"
rm -rf $NAME-$VERSION

echo "- Done"
openSUSE Build Service is sponsored by