#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>

DIR=bytelist-$2

git clone http://github.com/jruby/bytelist.git $DIR
(cd $DIR && git checkout $2)

tar cfz libbytelist-java_$2.orig.tar.gz --exclude .git $DIR

rm -rf $DIR ../$2
