File buildtarball.sh of Package pykolab-python3
#!/bin/bash set -e VERSION=0.9.0 GIT_REF=master NAME=pykolab-$VERSION ROOT_DIR=$(pwd) rm -Rf /tmp/$NAME mkdir /tmp/$NAME cd /tmp/$NAME rm -f $NAME.tar.gz [ -d "$NAME" ] && rm -rf "$NAME" git clone --branch master ssh://git@git.kolab.org/diffusion/P/pykolab.git $NAME pushd $NAME git archive --prefix=$NAME/ -o $ROOT_DIR/$NAME.tar.gz $GIT_REF cd "$PWD"