#!/bin/sh
#
# Quickly builds Debian packages

VERSION="0.0.2"
DEBIAN_VERSION="1"
FULL_VERSION="${VERSION}-${DEBIAN_VERSION}"

svn export svn://labs.libre-entreprise.org/svnroot/larpe
cd larpe/larpe
mv trunk larpe-${VERSION}
mv larpe-${VERSION}/debian .
tar czf larpe_${VERSION}.orig.tar.gz larpe-${VERSION}
mv debian larpe-${VERSION}
cd larpe-${VERSION}
debuild
cd ..
cp larpe_${FULL_VERSION}_all.deb \
    larpe_${FULL_VERSION}.diff.gz \
    larpe_${FULL_VERSION}.dsc \
    larpe_${FULL_VERSION}_i386.changes \
    larpe_${VERSION}.orig.tar.gz \
    ../..
