Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Feb 21, 2025
1 parent e8734b0 commit be17c3a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Tools/freebsd_x64
Submodule freebsd_x64 updated 3 files
+ kmake
+ kongruent
+ krafix
14 changes: 7 additions & 7 deletions Tools/platform.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
MACHINE_TYPE=`uname -m`
if [[ "$MACHINE_TYPE" == "armv"* ]]; then
KINC_PLATFORM=linux_arm
KORE_PLATFORM=linux_arm
elif [[ "$MACHINE_TYPE" == "aarch64"* ]]; then
KINC_PLATFORM=linux_arm64
KORE_PLATFORM=linux_arm64
elif [[ "$MACHINE_TYPE" == "x86_64"* ]]; then
KINC_PLATFORM=linux_x64
KORE_PLATFORM=linux_x64
else
echo "Unknown Linux machine '$MACHINE_TYPE', please edit Tools/platform.sh"
exit 1
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
KINC_PLATFORM=macos
KORE_PLATFORM=macos
elif [[ "$OSTYPE" == "FreeBSD"* ]]; then
KINC_PLATFORM=freebsd_x64
KORE_PLATFORM=freebsd_x64
elif [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "cygwin"* ]]; then
KINC_PLATFORM=windows_x64
KINC_EXE_SUFFIX=.exe
KORE_PLATFORM=windows_x64
KORE_EXE_SUFFIX=.exe
else
echo "Unknown platform '$OSTYPE', please edit Tools/platform.sh"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion get_dlc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

. `dirname "$0"`/Tools/platform.sh
git -C `dirname "$0"` submodule update --depth 1 --init "Tools/$KINC_PLATFORM"
git -C `dirname "$0"` submodule update --depth 1 --init "Tools/$KORE_PLATFORM"
8 changes: 4 additions & 4 deletions get_dlc_dangerously
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

. `dirname "$0"`/Tools/platform.sh
if test -f "Tools/$KINC_PLATFORM/icon.png"; then
git -C `dirname "$0"` submodule update --remote --merge "Tools/$KINC_PLATFORM"
if test -f "Tools/$KORE_PLATFORM/icon.png"; then
git -C `dirname "$0"` submodule update --remote --merge "Tools/$KORE_PLATFORM"
else
git -C `dirname "$0"` submodule update --init --remote "Tools/$KINC_PLATFORM"
git -C `dirname "$0"`/Tools/$KINC_PLATFORM checkout main
git -C `dirname "$0"` submodule update --init --remote "Tools/$KORE_PLATFORM"
git -C `dirname "$0"`/Tools/$KORE_PLATFORM checkout main
fi
2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2024 the Kinc Development Team
Copyright (c) 2025 the Kore Development Team

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down

0 comments on commit be17c3a

Please sign in to comment.