#!/bin/bash
set -eu;

readonly ROOT="$(realpath "$(dirname "$0")")";

pushd .;
cd "${ROOT}";

wget -O asconv.zip https://1935711.org/git/archive/demoscene__1935711/asconv/bfdcc2fe92871aa51fb64532d838af1f04d07507.zip;
echo "ff4438fb80d0cbe12ac095944c8b000958a4b4d4c51dcabe9adbf593633f28a33fbdae932d941aecc7694d8ab386dc546dce7810529a1380e5aebb58697372eb asconv.zip" | sha512sum --check;
wget -O pysim.zip https://1935711.org/git/archive/icc/pysim/0c8c5a7e39eca713d987f25af0b09547972cdc81.zip;
echo "0bc671042b0727e4aa55b778a5841ab6919c2c2ba261e6bc179a3c6d95c7a329b7c6b601befda2eaaf45955d2a7a46b8d69d5d08117d41b465ac593610054c20 pysim.zip" | sha512sum --check;
wget -O jcc.zip https://1935711.org/git/archive/icc/jcc/fa6573b013d7752bfc2dce72981b12522b05e5b3.zip;
echo "224c0254d4fd10b06142ce4727d3ee68adcdd9bfd59a0a2a51ba16fe41a234d79c5c08eeb94918f796813affe31b04e7a312c49a302d0015679428b43eefc093 jcc.zip" | sha512sum --check;

popd;
