2025-01-22 16:18:30 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
. `dirname "$0"`/Tools/platform.sh
|
|
|
|
|
|
2026-05-21 23:40:20 -07:00
|
|
|
if test -f `dirname "$0"`"/Tools/khamake/khamake.js"; then
|
2025-01-22 16:18:30 +01:00
|
|
|
git -C `dirname "$0"` submodule update --remote --merge Tools/khamake
|
|
|
|
|
else
|
|
|
|
|
git -C `dirname "$0"` submodule update --init --remote Tools/khamake
|
|
|
|
|
git -C `dirname "$0"`/Tools/khamake checkout main
|
|
|
|
|
fi
|
|
|
|
|
|
2026-05-21 23:40:20 -07:00
|
|
|
if test -f `dirname "$0"`"/Backends/Kore-hxcpp/khacpp/LICENSE.txt"; then
|
|
|
|
|
git -C `dirname "$0"` submodule update --remote --merge Backends/Kore-hxcpp/khacpp
|
2025-01-22 16:18:30 +01:00
|
|
|
else
|
2026-05-21 23:40:20 -07:00
|
|
|
git -C `dirname "$0"` submodule update --init --remote Backends/Kore-hxcpp/khacpp
|
|
|
|
|
git -C `dirname "$0"`/Backends/Kore-hxcpp/khacpp checkout main
|
2025-01-22 16:18:30 +01:00
|
|
|
fi
|
|
|
|
|
|
2026-05-21 23:40:20 -07:00
|
|
|
if test -f `dirname "$0"`"/Tools/$KORE_PLATFORM/LICENSE.txt"; then
|
|
|
|
|
git -C `dirname "$0"` submodule update --remote --merge "Tools/$KORE_PLATFORM"
|
2025-01-22 16:18:30 +01:00
|
|
|
else
|
2026-05-21 23:40:20 -07:00
|
|
|
git -C `dirname "$0"` submodule update --init --remote "Tools/$KORE_PLATFORM"
|
|
|
|
|
git -C `dirname "$0"`/Tools/$KORE_PLATFORM checkout main
|
2025-01-22 16:18:30 +01:00
|
|
|
fi
|
|
|
|
|
|
2026-05-21 23:40:20 -07:00
|
|
|
if test -f `dirname "$0"`"/Kore/get_dlc_dangerously"; then
|
|
|
|
|
git -C `dirname "$0"` submodule update --remote --merge Kore
|
2025-01-22 16:18:30 +01:00
|
|
|
else
|
2026-05-21 23:40:20 -07:00
|
|
|
git -C `dirname "$0"` submodule update --init --remote Kore
|
|
|
|
|
git -C `dirname "$0"`/Kore checkout v2
|
2025-01-22 16:18:30 +01:00
|
|
|
fi
|
|
|
|
|
|
2026-05-21 23:40:20 -07:00
|
|
|
bash `dirname "$0"`/Kore/get_dlc_dangerously
|