tools: fix arguments passing in configure.bat
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
b72be1ddbf
commit
d0c7d2dd88
@ -33,6 +33,8 @@ set tooldir=%CD%
|
|||||||
rem Parse command line arguments
|
rem Parse command line arguments
|
||||||
|
|
||||||
set debug=
|
set debug=
|
||||||
|
set enforce_distclean=
|
||||||
|
set distclean=
|
||||||
set fmt=-b
|
set fmt=-b
|
||||||
set posix=
|
set posix=
|
||||||
set help=
|
set help=
|
||||||
@ -44,11 +46,15 @@ set hostopt=
|
|||||||
if "%1"=="" goto :NoConfig
|
if "%1"=="" goto :NoConfig
|
||||||
if "%1"=="-h" goto :ShowUsage
|
if "%1"=="-h" goto :ShowUsage
|
||||||
if "%1"=="-d" goto :SetDebug
|
if "%1"=="-d" goto :SetDebug
|
||||||
|
if "%1"=="-E" goto :SetEnforceDistclean
|
||||||
|
if "%1"=="-e" goto :SetDistclean
|
||||||
if "%1"=="-f" goto :SetFormat
|
if "%1"=="-f" goto :SetFormat
|
||||||
if "%1"=="-b" goto :SetFormat
|
if "%1"=="-b" goto :SetFormat
|
||||||
if "%1"=="-l" goto :SetHostOption
|
if "%1"=="-l" goto :SetHostOption
|
||||||
|
if "%1"=="-m" goto :SetHostOption
|
||||||
if "%1"=="-c" goto :SetHostOption
|
if "%1"=="-c" goto :SetHostOption
|
||||||
if "%1"=="-n" goto :SetHostOption
|
if "%1"=="-n" goto :SetHostOption
|
||||||
|
if "%1"=="-B" goto :SetHostOption
|
||||||
if "%1"=="-L" goto :SetList
|
if "%1"=="-L" goto :SetList
|
||||||
if "%1"=="-a" goto :SetAppDir
|
if "%1"=="-a" goto :SetAppDir
|
||||||
|
|
||||||
@ -59,6 +65,14 @@ goto EndOfLoop
|
|||||||
set debug=%1
|
set debug=%1
|
||||||
goto :NextArg
|
goto :NextArg
|
||||||
|
|
||||||
|
:SetEnforceDistclean
|
||||||
|
set enforce_distclean=%1
|
||||||
|
goto :NextArg
|
||||||
|
|
||||||
|
:SetDistclean
|
||||||
|
set distclean=%1
|
||||||
|
goto :NextArg
|
||||||
|
|
||||||
:SetFormat
|
:SetFormat
|
||||||
set fmt=%1
|
set fmt=%1
|
||||||
goto :NextArg
|
goto :NextArg
|
||||||
@ -91,13 +105,13 @@ echo %cc% %cflags% -o configure.exe configure.c cfgparser.c
|
|||||||
%cc% %cflags% -o configure.exe configure.c cfgparser.c
|
%cc% %cflags% -o configure.exe configure.c cfgparser.c
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo ERROR: %cc% failed
|
echo ERROR: %cc% failed
|
||||||
echo Is ming32-gcc.exe installed? Is it in the PATH variable?
|
echo Is mingw32-gcc.exe installed? Is it in the PATH variable?
|
||||||
goto End
|
goto End
|
||||||
)
|
)
|
||||||
|
|
||||||
:HaveConfigureExe
|
:HaveConfigureExe
|
||||||
cd ..
|
cd ..
|
||||||
tools\configure.exe %debug% %fmt% %hostopt% %appdir% %config% %list%
|
tools\configure.exe %debug% %enforce_distclean% %distclean% %fmt% %hostopt% %appdir% %config% %list%
|
||||||
if errorlevel 1 echo configure.exe failed
|
if errorlevel 1 echo configure.exe failed
|
||||||
goto End
|
goto End
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user