detect freebsd, build for armv7, configure general build for unknown platforms

This commit is contained in:
pigeons
2017-01-27 09:10:08 -08:00
parent 4eedef048d
commit 7b94a47350
2 changed files with 18 additions and 4 deletions

View File

@@ -5,6 +5,8 @@ function get_platform {
local platform="unknown"
if [ "$(uname)" == "Darwin" ]; then
platform="darwin"
elif [ "$(uname)" == "FreeBSD" ]; then
platform="freebsd"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
if [ "$(expr substr $(uname -m) 1 6)" == "x86_64" ]; then
platform="linux64"