#!/bin/sh -e NAME=symbiosis-dns-mythic VERSION=$(sed 's/.*(\([^)]*\)).*/\1/;1q' debian/changelog) n="$NAME-$VERSION" t="$n.tar.gz" cd .. rm -f $t ln -s ${NAME} $n tar cfzh $t $n rm $n cd ${NAME}