mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00
22 lines
425 B
Bash
22 lines
425 B
Bash
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
||
|
|
||
|
platform="unknown"
|
||
|
unamestr="$(uname)"
|
||
|
if [[ "$unamestr" == "Linux" ]]; then
|
||
|
echo "Platform is linux."
|
||
|
platform="linux"
|
||
|
elif [[ "$unamestr" == "Darwin" ]]; then
|
||
|
echo "Platform is macosx."
|
||
|
platform="macosx"
|
||
|
else
|
||
|
echo "Unrecognized platform."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
pushd "$ROOT_DIR/thirdparty"
|
||
|
./download_thirdparty.sh
|
||
|
./build_thirdparty.sh
|
||
|
popd
|