#!/bin/bash MODULE=phonon VERSION=4.4.4 DATE=$(date +%Y%m%d) set -x rm -rf $MODULE git clone git://anongit.kde.org/phonon $MODULE/ pushd $MODULE git archive remotes/origin/4.4 --format tar --prefix=${MODULE}-${VERSION}/ | bzip2 -9 > ../${MODULE}-${VERSION}-${DATE}.tar.bz2 popd rm -rf $MODULE