#!/bin/sh -e

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

DIR=jaffl-$2

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

tar cfz jaffl_$2.orig.tar.gz -X debian/orig-tar.exclude $DIR

rm -rf $DIR ../$2
