#!/bin/sh

# detect platform

machine=`uname -m`
os=`uname -o`

arch = ''
platform = ''
if [ "$machine" = "i686" ]; then
    arch="i686"
    if [ "$os" = "GNU/Linux" ]; then
        platform="unknown-linux-gnu"
    else
        >&2 echo "Sorry. Your platform is not supported."
        exit 1
    fi
elif [ "$machine" = "x86_64" ]; then
    if [ "$os" = "GNU/Linux" ]; then
        platform="unknown-linux-gnu"
    else
        platform="unknown-linux-musl"
    fi
elif [ "$machine" = "armv6l" ]; then
elif [ "$machine" = "armv7l" ]; then
elif [ "$machine" = "aarch64" ]; then
else
    >&2 echo "Sorry. Your platform is not supported."
    exit 1
fi

# i686
# - GNU/Linux
# x86_64
# - GNU/Linus
# - Linux (MUSL?)
# armv6l
# - GNU/Linux
# armv7l
# - GNU/Linux
# aarch64
# - GNU/Linux
# - Android
# - Linux (MUSL?)
