>From c2d43fa48cd0b479d09dacfeca881ae1be4f9f31 Mon Sep 17 00:00:00 2001 From: Jannick Date: Tue, 5 Nov 2019 16:04:22 +0100 Subject: [PATCH 02/13] Windows build: enhance error reporting in build_w32.bat * build_w32.bat: - add subroutine ErrorExit - report error about illegal command line argument --- build_w32.bat | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build_w32.bat b/build_w32.bat index f1a55a4..b166ec1 100755 --- a/build_w32.bat +++ b/build_w32.bat @@ -51,7 +51,7 @@ if "%~1" == "--without-guile" goto NoGuile if "%~1" == "--x86" goto Set32Bit if "%~1" == "gcc" goto SetCC if "%~1" == "" goto DoneSW -goto Usage +call :ErrorExit "Illegal command line argument '%~1'." :SetDebug set DEBUG=Y @@ -375,6 +375,13 @@ if ERRORLEVEL 1 exit /b 1 if ERRORLEVEL 1 exit /b 1 goto :EOF +:ErrorExit +echo.-- %~1 +echo. +call :Usage +exit 1 +goto :EOF + :Usage echo Usage: %0 [options] [gcc] echo Options: -- 2.24.0.windows.1