diff options
Diffstat (limited to 'env.sh')
| -rwxr-xr-x | env.sh | 32 |
1 files changed, 11 insertions, 21 deletions
@@ -2,29 +2,19 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -if [ -n "$1" ]; then - TARGET="$1" -else - TARGET="" -fi - -if [ -z "$TARGET" ]; then - case "$(uname -s)" in - Linux*) - TARGET="x86_64-unknown-linux-gnu" - ;; - Darwin*) - TARGET="x86_64-apple-darwin" - ;; - MINGW*|MSYS_NT*) - TARGET="x86_64-pc-windows-msvc" - ;; - esac -fi +case "$(uname -s)" in + Linux*) + TARGET="x86_64-unknown-linux-gnu" + ;; + Darwin*) + TARGET="x86_64-apple-darwin" + ;; + MINGW*|MSYS_NT*) + TARGET="x86_64-pc-windows-msvc" + ;; +esac case "$TARGET" in - *android*) - ;; *linux*) export LIBMNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/$TARGET" export LIBNFTNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/$TARGET" |
