set -v
set -e
+[ -e /tmp/.pdns_meson_installed ] && exit 0 # we already have meson, let's assume we put it there earlier
+
readonly MESON_VERSION=$(jq -r .version < meson.json)
readonly MESON_TARBALL="${MESON_VERSION}.tar.gz"
readonly MESON_TARBALL_URL="https://github.com/mesonbuild/meson/archive/${MESON_TARBALL}"
cd ..
rm -rf "${MESON_TARBALL}" "meson-${MESON_VERSION}"
+
+touch /tmp/.pdns_meson_installed
set -v
set -e
+[ -e /tmp/.pdns_quiche_installed ] && exit 0
+
readonly QUICHE_VERSION=$(jq -r .version < quiche.json)
readonly QUICHE_TARBALL="${QUICHE_VERSION}.tar.gz"
readonly QUICHE_TARBALL_URL="https://github.com/cloudflare/quiche/archive/${QUICHE_TARBALL}"
cd ..
rm -rf "${QUICHE_TARBALL}" "quiche-${QUICHE_VERSION}"
+
+touch /tmp/.pdns_quiche_installed
set -e
+[ -e /tmp/.pdns_rust_installed ] && exit 0
+
ARCH=$(arch)
# Default version
cd ..
rm -rf $RUST_VERSION
+
+touch /tmp/.pdns_rust_installed