reduce nesting in configure.bat

for some inexplicable reason, configure.bat went into an endless loop
on win 8.1+ while attempting to parse the command line; this is clearly
a bug in cmd, so work around it.

amends 7af6e9bb.

Task-number: QTBUG-58019
Change-Id: I698a2a51891a4e7af75836c075888f70df865409
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
Oswald Buddenhagen 2017-01-09 20:11:25 +01:00 committed by Liang Qi
parent 41d1785e13
commit ecb025e346

View File

@ -89,13 +89,12 @@ goto doneargs
:help :help
type %QTSRC%\config_help.txt type %QTSRC%\config_help.txt
if %TOPLEVEL% == true ( if %TOPLEVEL% == false exit /b 1
for /d %%p in ("%TOPQTSRC%"\qt*) do ( for /d %%p in ("%TOPQTSRC%"\qt*) do (
if not "%%p" == "%QTSRC%" ( if not "%%p" == "%QTSRC%" (
if exist "%%p\config_help.txt" ( if exist "%%p\config_help.txt" (
echo. echo.
type "%%p\config_help.txt" type "%%p\config_help.txt"
)
) )
) )
) )