diff --git a/scripts/build_sokol_demo.sh b/scripts/build_sokol_demo.sh index 2859235..e234093 100644 --- a/scripts/build_sokol_demo.sh +++ b/scripts/build_sokol_demo.sh @@ -19,9 +19,7 @@ if [ -f "$path_system_details" ]; then CoreCount_Physical=$(grep "PhysicalCores" "$path_system_details" | cut -d'=' -f2) CoreCount_Logical=$(grep "LogicalCores" "$path_system_details" | cut -d'=' -f2) else - # Detect the operating system OS=$(uname -s) - case "$OS" in Darwin*) # macOS-specific commands diff --git a/scripts/build_sokol_library.sh b/scripts/build_sokol_library.sh index b235d6a..71ce9a9 100644 --- a/scripts/build_sokol_library.sh +++ b/scripts/build_sokol_library.sh @@ -36,9 +36,7 @@ fi pushd "$path_sokol" -# Detect the operating system OS=$(uname -s) - case "$OS" in Linux*) echo "Detected Linux operating system" diff --git a/scripts/compile_sokol_shaders.sh b/scripts/compile_sokol_shaders.sh index 1316503..579a68b 100644 --- a/scripts/compile_sokol_shaders.sh +++ b/scripts/compile_sokol_shaders.sh @@ -1,5 +1,7 @@ #!/bin/bash +OS=$(uname -s) + path_root="$(git rev-parse --show-toplevel)" path_backend="$path_root/backend" path_scripts="$path_root/scripts" @@ -13,6 +15,11 @@ case "$OS" in Linux*) sokol_shdc="$path_sokol_tools/bin/linux/sokol-shdc" ;; + *) + echo "Unsupported operating system: $OS" + CoreCount_Physical=1 + CoreCount_Logical=1 + ;; esac echo "Using sokol-shdc: $sokol_shdc" chmod +x "$sokol_shdc"