LNXSDK/Kha/get_dlc
2025-01-22 16:18:30 +01:00

23 lines
859 B
Bash
Executable File

#!/usr/bin/env bash
git -C `dirname "$0"` submodule update --init Tools/khamake
git -C `dirname "$0"` submodule update --init Backends/Kinc-hxcpp/khacpp
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
MACHINE_TYPE=`uname -m`
if [[ "$MACHINE_TYPE" == "armv"* ]]; then
git -C `dirname "$0"` submodule update --depth 1 --init Tools/linux_arm
elif [[ "$MACHINE_TYPE" == "aarch64"* ]]; then
git -C `dirname "$0"` submodule update --depth 1 --init Tools/linux_arm64
else
git -C `dirname "$0"` submodule update --depth 1 --init Tools/linux_x64
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
git -C `dirname "$0"` submodule update --depth 1 --init Tools/macos
elif [[ "$OSTYPE" == "FreeBSD"* ]]; then
git -C `dirname "$0"` submodule update --depth 1 --init Tools/freebsd_x64
fi
git -C `dirname "$0"` submodule update --init Kinc
bash `dirname "$0"`/Kinc/get_dlc