#!/bin/sh -e

VERSION=$2
TAR=../async-http-client_$VERSION.orig.tar.gz
DIR=async-http-client-$VERSION

tar xzf $3
mv sonatype-async-http-client-* $DIR
GZIP=--best tar czf $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR
