Luna/tools/test-binutils.sh

16 lines
297 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2022-09-05 16:13:51 +02:00
set -e
source $(dirname $0)/setup-env.sh
if [ -x "$(command -v $LUNA_ARCH-luna-ar)" ]
2022-09-05 16:13:51 +02:00
then
if [ "$($LUNA_ARCH-luna-ar --version | head -n 1 | awk '{ print $5 }')" == "$LUNA_BINUTILS_VERSION_REQUIRED" ]
2022-09-05 16:13:51 +02:00
then
exit 0
else
exit 1
fi
else
exit 1
2023-01-11 19:14:35 +01:00
fi