1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00
Files
authentication-service/misc/docker-arch-to-rust-target.sh
2021-11-02 09:59:49 +01:00

16 lines
275 B
Bash
Executable File

#!/bin/sh
if [ "$#" -ne 1 ]; then
echo "usage: $0 [platform]" >&2
exit 1
fi
if [ "$1" = "linux/arm64" ]; then
echo "aarch64-unknown-linux-gnu"
elif [ "$1" = "linux/amd64" ]; then
echo "x86_64-unknown-linux-gnu"
else
echo "unsupported platform $1" >&2
exit 2
fi