2022-10-08 13:35:39 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-05 14:13:51 +00:00
|
|
|
set -e
|
|
|
|
source $(dirname $0)/setup-env.sh
|
|
|
|
|
2023-01-11 18:14:35 +00:00
|
|
|
if [ -x "$(command -v $ARCH-luna-gcc)" ]
|
2022-09-05 14:13:51 +00:00
|
|
|
then
|
2023-01-11 18:14:35 +00:00
|
|
|
if [ "$($ARCH-luna-gcc --version | head -n 1 | awk '{ print $3 }')" == "$LUNA_GCC_VERSION_REQUIRED" ]
|
2022-09-05 14:13:51 +00:00
|
|
|
then
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
exit 1
|
2023-01-11 18:14:35 +00:00
|
|
|
fi
|