Ensure that buildconf.bat does nothing unless it is used with a CVS checkout.
[platform/upstream/curl.git] / buildconf.bat
1 @echo off
2 REM
3 REM $Id$
4 REM
5 REM This batch file must be used to set up a CVS tree to build on
6 REM systems where there is no autotools support (i.e. Microsoft).
7 REM
8 REM This file is not included nor needed for curl's release
9 REM archives, neither for curl's daily snapshot archives.
10
11 if exist CVS-INFO goto start_doing
12 ECHO ERROR: This file shall only be used with a curl CVS tree checkout.
13 goto end_all
14 :start_doing
15
16 REM create hugehelp.c
17 if not exist src\hugehelp.c.cvs goto end_hugehelp_c
18 copy /Y src\hugehelp.c.cvs src\hugehelp.c
19 :end_hugehelp_c
20
21 REM create Makefile
22 if not exist Makefile.dist goto end_makefile
23 copy /Y Makefile.dist Makefile
24 :end_makefile
25
26 REM create curlbuild.h
27 if not exist include\curl\curlbuild.h.dist goto end_curlbuild_h
28 copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h
29 :end_curlbuild_h
30
31 REM setup c-ares CVS tree
32 if not exist ares\buildconf.bat goto end_c_ares
33 cd ares
34 call buildconf.bat
35 cd ..
36 :end_c_ares
37
38 :end_all
39