generate.bat: Use lower-case for commands and reserved keywords
Whilst there are no coding standards for the batch files used in curl, most tend to use lower-case for keywords and upper-case for variables.
This commit is contained in:
Родитель
9b95306d4c
Коммит
b656715da3
|
@ -92,9 +92,9 @@ rem If you need to set the errorlevel do this instead: CALL :seterr [#]
|
||||||
if "%MODE%" == "GENERATE" (
|
if "%MODE%" == "GENERATE" (
|
||||||
echo.
|
echo.
|
||||||
echo Generating prerequisite files
|
echo Generating prerequisite files
|
||||||
CALL :gen_curlbuild
|
call :gen_curlbuild
|
||||||
if errorlevel 1 goto error
|
if errorlevel 1 goto error
|
||||||
CALL :gen_hugehelp
|
call :gen_hugehelp
|
||||||
if errorlevel 1 goto error
|
if errorlevel 1 goto error
|
||||||
) else (
|
) else (
|
||||||
echo.
|
echo.
|
||||||
|
@ -435,7 +435,7 @@ rem Returns exit code 0 on success or 1 on failure.
|
||||||
echo #endif>> ..\src\tool_hugehelp.c
|
echo #endif>> ..\src\tool_hugehelp.c
|
||||||
)
|
)
|
||||||
findstr "/C:void hugehelp(void)" ..\src\tool_hugehelp.c 1>NUL 2>&1
|
findstr "/C:void hugehelp(void)" ..\src\tool_hugehelp.c 1>NUL 2>&1
|
||||||
if %ERRORLEVEL% NEQ 0 (
|
if %ERRORLEVEL% neq 0 (
|
||||||
echo Error: Unable to generate ..\src\tool_hugehelp.c
|
echo Error: Unable to generate ..\src\tool_hugehelp.c
|
||||||
exit /B 1
|
exit /B 1
|
||||||
)
|
)
|
||||||
|
@ -447,7 +447,7 @@ rem Returns exit code 0 on success or 1 on failure.
|
||||||
setlocal
|
setlocal
|
||||||
echo * %CD%\..\include\curl\curlbuild.h
|
echo * %CD%\..\include\curl\curlbuild.h
|
||||||
copy /y ..\include\curl\curlbuild.h.dist ..\include\curl\curlbuild.h 1>NUL
|
copy /y ..\include\curl\curlbuild.h.dist ..\include\curl\curlbuild.h 1>NUL
|
||||||
if %ERRORLEVEL% NEQ 0 (
|
if %ERRORLEVEL% neq 0 (
|
||||||
echo Error: Unable to generate ..\include\curl\curlbuild.h
|
echo Error: Unable to generate ..\include\curl\curlbuild.h
|
||||||
exit /B 1
|
exit /B 1
|
||||||
)
|
)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче