]> granicus.if.org Git - curl/commitdiff
buildconf.bat: Added exit codes for error handling
authorSteve Holme <steve_holme@hotmail.com>
Wed, 5 Aug 2015 05:36:42 +0000 (06:36 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 5 Aug 2015 05:45:21 +0000 (06:45 +0100)
buildconf.bat

index 39db70354f91de9568d3c5c2eceefc37ed9bed03..e54ce743c97bd0c27c491bac83eecdc12b6bd6b3 100644 (file)
@@ -29,11 +29,10 @@ rem
 rem This file is not included or required for curl's release archives or daily 
 rem snapshot archives.
 
-if exist GIT-INFO goto start_doing
-echo ERROR: This file shall only be used with a curl git tree checkout.
-goto end_all
-:start_doing
+:begin
+  if not exist GIT-INFO goto nogitinfo
 
+:start
 rem create tool_hugehelp.c
 if not exist src\tool_hugehelp.c.cvs goto end_hugehelp_c
 copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c
@@ -55,6 +54,17 @@ cd ares
 call buildconf.bat
 cd ..
 :end_c_ares
+goto success
 
-:end_all
+:nogitinfo
+  echo.
+  echo ERROR: This file shall only be used with a curl git tree checkout.
+  goto error
 
+:error
+  endlocal
+  exit /B 1
+
+:success
+  endlocal
+  exit /B 0