#! /bin/sh # $Id$ # $URL$ set -e repository=https://svn.non-gnu.uvt.nl/uvt-dev/trunk/sources/meresco/bzv svn -u st tmp=$(mktemp -d) trap 'rm -rf -- "$tmp"' EXIT cd $tmp svn export $repository bzv cd bzv ls -lh cp -a setup.py setup.py.org sed -e "s/version = 'SVN'/version = 'test-$USER'"/ setup.py.org > setup.py newver=$(sed -rn "s/.*version = '([^']*)'.*/\1/p" setup.py) echo "Generating version $newver" ./setup.py sdist file=bzv-test-$USER.tar.gz ln -f dist/$file /tmp echo "File placed at /tmp/$file"