#!/bin/bash
# This is how the Debian source tarball was created:

set -e

PACKAGE=rott
VERSION=1.1.2+
SVNREV=287

TMPDIR=`mktemp -d`

pushd ${TMPDIR}
svn export -r ${SVNREV} svn://svn.icculus.org/rott/trunk/ ${PACKAGE}-${VERSION}svn${SVNREV}
tar cJfv ${PACKAGE}_${VERSION}svn${SVNREV}.orig.tar.xz ${PACKAGE}-${VERSION}svn${SVNREV}
popd

cp ${TMPDIR}/${PACKAGE}_${VERSION}svn${SVNREV}.orig.tar.xz ..
