#!/bin/sh

VERSION="0.2.0"

svn export svn://labs.libre-entreprise.org/svnroot/larpe/larpe/tags/release-${VERSION}
cd release-${VERSION}
cvs -d :pserver:anonymous@labs.libre-entreprise.org:/cvsroot/wcs login
cvs -d :pserver:anonymous@labs.libre-entreprise.org:/cvsroot/wcs export -r HEAD -d larpe/qommon wcs/wcs/qommon
cd ..
mv release-${VERSION} larpe-${VERSION}
mv larpe-${VERSION}/debian .
tar czf larpe_${VERSION}.orig.tar.gz larpe-${VERSION}
mv debian larpe-${VERSION}
cd larpe-${VERSION}
debuild
cd ..
rm -rf larpe-${VERSION}
