0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-07 14:55:41 +00:00
netdata_netdata/packaging/makeself/uname2platform.sh
2024-01-29 11:59:13 +02:00

19 lines
362 B
Bash
Executable file

#!/bin/sh
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
BUILDARCH="${1}"
case "${BUILDARCH}" in
x86_64) echo "linux/amd64" ;;
armv6l) echo "linux/arm/v6" ;;
armv7l) echo "linux/arm/v7" ;;
aarch64) echo "linux/arm64/v8" ;;
ppc64le) echo "linux/ppc64le" ;;
*)
echo "Unknown target architecture '${BUILDARCH}'." >&2
exit 1
;;
esac