buildconf.bat: Added exit codes for error handling
This commit is contained in:
parent
6e566451ce
commit
df5965ebf4
@ -29,11 +29,10 @@ rem
|
|||||||
rem This file is not included or required for curl's release archives or daily
|
rem This file is not included or required for curl's release archives or daily
|
||||||
rem snapshot archives.
|
rem snapshot archives.
|
||||||
|
|
||||||
if exist GIT-INFO goto start_doing
|
:begin
|
||||||
echo ERROR: This file shall only be used with a curl git tree checkout.
|
if not exist GIT-INFO goto nogitinfo
|
||||||
goto end_all
|
|
||||||
:start_doing
|
|
||||||
|
|
||||||
|
:start
|
||||||
rem create tool_hugehelp.c
|
rem create tool_hugehelp.c
|
||||||
if not exist src\tool_hugehelp.c.cvs goto end_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
|
copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c
|
||||||
@ -55,6 +54,17 @@ cd ares
|
|||||||
call buildconf.bat
|
call buildconf.bat
|
||||||
cd ..
|
cd ..
|
||||||
:end_c_ares
|
: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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user