Luna/tools/test-binutils.sh
apio 73ddd0b0c5
All checks were successful
continuous-integration/drone/push Build is passing
tools: Be more arch-agnostic
2023-01-11 19:14:35 +01:00

16 lines
287 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/setup-env.sh
if [ -x "$(command -v $ARCH-luna-ar)" ]
then
if [ "$($ARCH-luna-ar --version | head -n 1 | awk '{ print $5 }')" == "$LUNA_BINUTILS_VERSION_REQUIRED" ]
then
exit 0
else
exit 1
fi
else
exit 1
fi