#/bin/sh DATE=$(date +%Y%m%d) EXPORT_DIR=phonon VERSION=4.4.3 set -x rm -rf $EXPORT_DIR git clone git://gitorious.org/phonon/phonon.git pushd $EXPORT_DIR git archive --prefix=phonon-${VERSION}/ master | bzip2 > ../phonon-${VERSION}-${DATE}.tar.bz2 popd # cleanup rm -rf $EXPORT_DIR