File update.sh of Package gitorious

rm -rf gitorious
rm gitorious.tar.bz2
tmp=$(mktemp -d)
echo "Checking out to ${tmp}"
git clone git://gitorious.org/gitorious/mainline.git ${tmp}
orig=$PWD
pushd ${tmp}
rev=$(cat .git/refs/heads/master)
echo "Updated from git (${rev})"
git archive --format=tar --prefix=gitorious/ master | bzip2 > ${orig}/gitorious.tar.bz2
popd
rm -rf ${tmp}