#!/usr/bin/env bash
if [
then
else
fi
if [
then
else
fi
if [
then
else
fi
# Look up python installations, starting with 3 with a fallback of 2
if [
then
PY=""
elif [
then
PY=""
elif [
then
PY=""
else
fi
# Function that compares two versions strings v1 and v2 given in arguments (e.g 1.31 and 1.33.0).
# Returns 1 if v1 > v2, 0 if v1 == v2, 2 if v1 < v2.
RustVersion=
MinRustVersion=1.39
if [
then
else
fi
Path=
Version=
CargoBin=" /bin"
if
then
Version=
if
then
Version="main"
else
Version="tags/"
fi
else
Version="tags/"
fi
if ! [
then
fi
# Checking whether Clippy is installed.
# Due to a bug in Cargo, this must be done with Rustup: https://github.com/rust-lang/rustup/issues/1514
Clippy=
if [
then
fi