#!/bin/sh
#
# Look for GCC-9.3
x=$(which gcc-9.3 2>/dev/null)
if [ -n "${x}" ]; then
    gdir=$(dirname "${x}")
elif [ -f "/usr/gcc-9.3/bin/gcc" ]; then
    gdir="/usr/gcc-9.3/bin"
else
    echo "Cannot find GCC 9.3"
    exit 1
fi

echo "GCC is in ${gdir}"

CC="${gdir}/gcc"
CPP="${gdir}/cpp"
CXX="${gdir}/g++"
PATH="${gdir}:${PATH}"
export CC CPP CXX PATH

echo "Starting subshell. Type exit to exit."

${SHELL}
