-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_dlc
executable file
·22 lines (19 loc) · 859 Bytes
/
get_dlc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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