#! /bin/sh set -e # $Id$ # $URL$ # # This script checks out a fresh SVN repositorytree from the SVN repository defined in the envvar: 'repository'. # The tree resides on a temporary location. A pythonpackage is build from it and the resulting .tar.gz file is # saved on a temporary location. The tree, no longer needed is then removed. # The .tar.gz file can now be copied and extracted ono a targetmachine where 'installTestversion' will # install the package. repository=https://svn.non-gnu.uvt.nl/uvt-dev/trunk/sources/meresco/bzv cp -a setup.py setup.py.org sed -e "s/version = 'SVN'/version = 'test-$USER'"/ setup.py.org > setup.py2 chmod 755 setup.py2 newver=$(sed -rn "s/.*version = '([^']*)'.*/\1/p" setup.py2) echo "Generating version $newver" ./setup.py2 sdist file=bzv-test-$USER.tar.gz cp -f dist/$file /tmp echo "File placed at /tmp/$file"