#!/bin/sh
# SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has placed dedicated it to the public domain.
# For more information, please refer to <https://unlicense.org/>
# SPDX-License-Identifier: Unlicense
APPLIANCES=""
MISSING=""
if command -v python2 > /dev/null 2>&1; then
APPLIANCES="$APPLIANCES appliances/t-rext.py2.md"
else
MISSING="${MISSING}2"
fi
if command -v python3 > /dev/null 2>&1; then
APPLIANCES="$APPLIANCES appliances/t-rext.py3.md"
else
MISSING="${MISSING}3"
fi
if [ "x${MISSING}" = "x23" ]; then
echo "Neither python2 nor python3 found on executable search path. Aborting."
exit 1
fi
falderal $APPLIANCES README.md || exit 1