]> granicus.if.org Git - curl/commitdiff
generate.bat: Only call buildconf.bat if it exists
authorSteve Holme <steve_holme@hotmail.com>
Fri, 14 Aug 2015 19:44:55 +0000 (20:44 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 14 Aug 2015 19:46:11 +0000 (20:46 +0100)
projects/generate.bat

index c6de181b7943ae02eb440188bcc8012b45709d62..bb58eb00ba1fbefa40e02176b47dcb6a6ec5332c 100644 (file)
@@ -82,12 +82,14 @@ rem If you need to set the errorlevel do this instead: CALL :seterr [#]
   shift & goto parseArgs
  
 :start
-  if "%MODE%" == "GENERATE" (
-    call ..\buildconf
-  ) else if "%VERSION%" == "PRE" (
-    call ..\buildconf -clean
-  ) else if "%VERSION%" == "ALL" (
-    call ..\buildconf -clean
+  if exist ..\buildconf.bat (
+    if "%MODE%" == "GENERATE" (
+      call ..\buildconf
+    ) else if "%VERSION%" == "PRE" (
+      call ..\buildconf -clean
+    ) else if "%VERSION%" == "ALL" (
+      call ..\buildconf -clean
+    )
   )
   if "%VERSION%" == "VC6" goto vc6
   if "%VERSION%" == "VC7" goto vc7