From e294f8d061fa769735ce5dbb8547823ddca38d96 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 1 Dec 2022 20:19:22 +0200 Subject: [PATCH 17/17] installer_cross: Check that crosser setup is supported See osdn #46126 Signed-off-by: Marko Lindqvist --- windows/installer_cross/winbuild.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/windows/installer_cross/winbuild.sh b/windows/installer_cross/winbuild.sh index 447b0b3f3a..b42872646d 100755 --- a/windows/installer_cross/winbuild.sh +++ b/windows/installer_cross/winbuild.sh @@ -110,20 +110,23 @@ if ! mkdir -p "${BUILD_DIR}" ; then exit 1 fi -if test x$SETUP = xwin64 ; then +if test "$SETUP" = "win64" ; then TARGET=x86_64-w64-mingw32 if test "x$SINGLE_GUI" != "xtrue" ; then CLIENTS="gtk3,sdl2,gtk3.22" FCMP="gtk3,cli" fi VERREV="win64-$VERREV" -else +elif test "$SETUP" = "win32" ; then TARGET=i686-w64-mingw32 if test "x$SINGLE_GUI" != "xtrue" ; then CLIENTS="gtk2,gtk3,sdl2,gtk3.22" FCMP="gtk2,gtk3,cli" fi VERREV="win32-$VERREV" +else + echo "Unsupported crosser setup \"${SETUP}\"!" >&2 + exit 1 fi if test "x$SINGLE_GUI" != "xtrue" ; then -- 2.35.1