#!/bin/sh
# get source for kmer from SVN because there is no source tarball distribution

set -e

base_url=http://sourceforge.net/code-snapshots/svn/k/km/kmer/code
revision=$(echo ${DEB_VERSION_UPSTREAM} | grep --only-matching '[0-9]*$')
snapshot=kmer-code-${revision}-trunk.zip

wget ${base_url}/${snapshot} -O ../${snapshot}
mk-origtargz ../${snapshot} --rename --repack
