if ! hash wget &> /dev/null
then
echo "wget not installed!"
exit 1
fi
tmp="$(mktemp -d "${TMPDIR:-/tmp}"/tmp.XXXXXXXX)"
out=src
mkdir -p $out/matrices
wget -q --show-progress --cut-dirs=3 --reject cdi,matrices,tar.gz --directory-prefix=$tmp -r -nH -nc ftp://ftp.ncbi.nlm.nih.gov/blast/matrices
cargo run --features codegen $tmp
rustfmt src/**/*