aboutsummaryrefslogtreecommitdiff
path: root/buildconf.bat
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-08-05 06:36:42 +0100
committerSteve Holme <steve_holme@hotmail.com>2015-08-05 06:45:21 +0100
commitdf5965ebf4573ad18ba400272a7d74a2366068e9 (patch)
treea96bbac1554aaea735005b7ab155dc996cddcc2e /buildconf.bat
parent6e566451cecef696745f1ac99cfbc65c75ce7359 (diff)
buildconf.bat: Added exit codes for error handling
Diffstat (limited to 'buildconf.bat')
-rw-r--r--buildconf.bat20
1 files changed, 15 insertions, 5 deletions
diff --git a/buildconf.bat b/buildconf.bat
index 39db70354..e54ce743c 100644
--- a/buildconf.bat
+++ b/buildconf.bat
@@ -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