mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-07 02:16:02 +08:00

This makes them pass shellcheck. Except for a few unused export warnings. I also wonder if the majority of these files should be in the root of the project, or should be moved to "build-scripts" (or should still even exist). a few minor changes one more minor changes
25 lines
423 B
Bash
Executable File
25 lines
423 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Look for GCC-8.3
|
|
x=$(which gcc-8.3 2>/dev/null)
|
|
if [ -n "${x}" ]; then
|
|
gdir=$(dirname "${x}")
|
|
elif [ -f "/usr/gcc-8.3/bin/gcc" ]; then
|
|
gdir="/usr/gcc-8.3/bin"
|
|
else
|
|
echo "Cannot find GCC 8.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}
|