f84944
#!/bin/bash
f84944
f84944
set -e
f84944
f84944
tmp=$(mktemp -d)
f84944
f84944
trap cleanup EXIT
f84944
cleanup() {
f84944
    set +e
f84944
    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
f84944
}
f84944
f84944
unset CDPATH
f84944
pwd=$(pwd)
f84944
version=2.6
f84944
commit=cb30cbf275e12a8af1d71e42a033af7eb1847bff
f84944
f84944
pushd "$tmp"
f84944
git clone https://github.com/mnemosyne-proj/mnemosyne.git
f84944
cd mnemosyne
f84944
git archive --prefix="" --format=tar ${commit} {.,mnemosyne,openSM2sync}/LICENSE tests/ | xz -T0 > "$pwd"/Mnemosyne-tests-${version}.tar.xz
f84944
popd