#!/bin/sh -e

VERSION=$2
TAR=../qdox_$VERSION.orig.tar.gz
DIR=qdox-$VERSION
TAG=qdox-$VERSION

svn export http://svn.codehaus.org/qdox/tags/$TAG/ $DIR
rm -r $DIR/bootstrap
tar -c -z -f $TAR $DIR
rm -rf $DIR ../$TAG

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $TAR $origDir
  echo "moved $TAR to $origDir"
fi
