aboutsummaryrefslogtreecommitdiff
path: root/buildconf.bat
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-08-05 17:32:45 +0100
committerSteve Holme <steve_holme@hotmail.com>2015-08-05 17:54:20 +0100
commit97c9d31884d25322e36bb2bfc5cee6485b503f4d (patch)
treef78b7f258e97178e5cc1fd7fd550e4cebaf180f9 /buildconf.bat
parent9947f259bf2e75adad79d72bb22e7b60821d7001 (diff)
buildconf.bat: Avoid using goto for file not in repository
Diffstat (limited to 'buildconf.bat')
-rw-r--r--buildconf.bat39
1 files changed, 20 insertions, 19 deletions
diff --git a/buildconf.bat b/buildconf.bat
index fe4b75d53..5de8bf18c 100644
--- a/buildconf.bat
+++ b/buildconf.bat
@@ -38,28 +38,29 @@ rem snapshot archives.
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
-:end_hugehelp_c
+ rem create tool_hugehelp.c
+ if exist src\tool_hugehelp.c.cvs (
+ copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c
+ )
-rem create Makefile
-if not exist Makefile.dist goto end_makefile
-copy /Y Makefile.dist Makefile
-:end_makefile
+ rem create Makefile
+ if exist Makefile.dist (
+ copy /Y Makefile.dist Makefile
+ )
-rem create curlbuild.h
-if not exist include\curl\curlbuild.h.dist goto end_curlbuild_h
-copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h
-:end_curlbuild_h
+ rem create curlbuild.h
+ if exist include\curl\curlbuild.h.dist (
+ copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h
+ )
-rem setup c-ares git tree
-if not exist ares\buildconf.bat goto end_c_ares
-cd ares
-call buildconf.bat
-cd ..
-:end_c_ares
-goto success
+ rem setup c-ares git tree
+ if exist ares\buildconf.bat (
+ cd ares
+ call buildconf.bat
+ cd ..
+ )
+
+ goto success
:syntax
rem Display the help