]> granicus.if.org Git - curl/commitdiff
generate.bat: Use lower-case for commands and reserved keywords
authorSteve Holme <steve_holme@hotmail.com>
Sun, 26 Jul 2015 19:59:56 +0000 (20:59 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 28 Jul 2015 22:08:24 +0000 (23:08 +0100)
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.

projects/generate.bat

index b89c2d4dd6a5d5367a5ff106c1c85014fe463829..aaf46ff3add6b50df137194872ef13282e508a28 100644 (file)
@@ -92,9 +92,9 @@ rem If you need to set the errorlevel do this instead: CALL :seterr [#]
   if "%MODE%" == "GENERATE" (
     echo.
     echo Generating prerequisite files
-    CALL :gen_curlbuild
+    call :gen_curlbuild
     if errorlevel 1 goto error
-    CALL :gen_hugehelp
+    call :gen_hugehelp
     if errorlevel 1 goto error
   ) else (
     echo.
@@ -435,7 +435,7 @@ rem Returns exit code 0 on success or 1 on failure.
     echo #endif>> ..\src\tool_hugehelp.c
   )
   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
     exit /B 1
   )
@@ -447,7 +447,7 @@ rem Returns exit code 0 on success or 1 on failure.
   setlocal
   echo * %CD%\..\include\curl\curlbuild.h
   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
     exit /B 1
   )