Old shells expect number for test -gt

This commit is contained in:
pancake 2024-02-06 18:51:28 +01:00
parent 086c36c582
commit 88580023d3
2 changed files with 7 additions and 3 deletions

4
env.sh
View File

@ -54,12 +54,12 @@ if [ -z "$*" ]; then
echo "==> Back to system shell..."
echo
else
if [ "$#" -gt 1 ]; then
if [ $# -gt 1 ]; then
par=""
p=0
while : ; do
p=$(($p+1))
[ "$p" -gt $# ] && break
[ $p -gt $# ] && break
a=`eval echo "\$\{$p\}"`
par="$par\"$a\" "
done

View File

@ -11,7 +11,11 @@ IOS_SDK_VERSION="9.0"
else
ifeq ($(shell test "$(XCODE_VERSION_MAJOR)" -gt 10;echo $$?),0)
ifeq ($(XCODE_VERSION_MAJOR),)
XCODE_VERSION_MAJOR=0
endif
ifeq ($(shell test $(XCODE_VERSION_MAJOR) -gt 10;echo $$?),0)
MACOS_VERSION="10.5"
MACOS_SDK_VERSION="10.5"
PARTIALLD+=-arch ${ARCH} -platform_version macos $(MACOS_VERSION) $(MACOS_SDK_VERSION)