update to 9.7.1-P2
[tridge/bind9.git] / win32utils / BuildSetup.bat
1 echo off\r
2 rem\r
3 rem Copyright (C) 2004,2005  Internet Systems Consortium, Inc. ("ISC")\r
4 rem Copyright (C) 2001-2002  Internet Software Consortium.\r
5 rem \r
6 rem Permission to use, copy, modify, and distribute this software for any\r
7 rem purpose with or without fee is hereby granted, provided that the above\r
8 rem copyright notice and this permission notice appear in all copies.\r
9 rem \r
10 rem THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH\r
11 rem REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r
12 rem AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,\r
13 rem INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r
14 rem LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE\r
15 rem OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r
16 rem PERFORMANCE OF THIS SOFTWARE.\r
17 \r
18 rem BuildSetup.bat\r
19 rem This script sets up the files necessary ready to build BIND 9.\r
20 rem This requires perl to be installed on the system.\r
21 \r
22 rem Set up the configuration file\r
23 cd ..\r
24 copy config.h.win32 config.h\r
25 cd win32utils\r
26 \r
27 rem Get and update for the latest build of the openssl and libxml libraries\r
28 perl updateopenssl.pl\r
29 perl updatelibxml2.pl\r
30 \r
31 rem Generate the version information\r
32 perl makeversion.pl\r
33 \r
34 rem Generate header files for lib/dns\r
35 \r
36 call dnsheadergen.bat\r
37 \r
38 rem Make sure that the Build directories are there.\r
39 \r
40 if NOT Exist ..\Build mkdir ..\Build\r
41 if NOT Exist ..\Build\Release mkdir ..\Build\Release\r
42 if NOT Exist ..\Build\Debug mkdir ..\Build\Debug\r
43 \r
44 echo Copying the ARM and the Installation Notes.\r
45 \r
46 copy ..\COPYRIGHT ..\Build\Release\r
47 copy ..\README ..\Build\Release\r
48 copy ..\HISTORY ..\Build\Release\r
49 copy readme1st.txt ..\Build\Release\r
50 copy index.html ..\Build\Release\r
51 copy ..\doc\arm\*.html ..\Build\Release\r
52 copy ..\doc\arm\Bv9ARM.pdf ..\Build\Release\r
53 copy ..\CHANGES ..\Build\Release\r
54 copy ..\FAQ ..\Build\Release\r
55 \r
56 echo Copying the standalone manual pages.\r
57 \r
58 copy ..\bin\named\named.html ..\Build\Release\r
59 copy ..\bin\rndc\*.html ..\Build\Release\r
60 copy ..\bin\confgen\*.html ..\Build\Release\r
61 copy ..\bin\dig\*.html ..\Build\Release\r
62 copy ..\bin\nsupdate\*.html ..\Build\Release\r
63 copy ..\bin\check\*.html ..\Build\Release\r
64 copy ..\bin\dnssec\dnssec-keygen.html ..\Build\Release\r
65 copy ..\bin\dnssec\dnssec-signzone.html ..\Build\Release\r
66 copy ..\bin\dnssec\dnssec-dsfromkey.html ..\Build\Release\r
67 copy ..\bin\dnssec\dnssec-keyfromlabel.html ..\Build\Release\r
68 copy ..\bin\pkcs11\pkcs11-keygen.html ..\Build\Release\r
69 copy ..\bin\pkcs11\pkcs11-list.html ..\Build\Release\r
70 copy ..\bin\pkcs11\pkcs11-destroy.html ..\Build\Release\r
71 \r
72 echo Copying the migration notes.\r
73 \r
74 copy ..\doc\misc\migration ..\Build\Release\r
75 copy ..\doc\misc\migration-4to9 ..\Build\Release\r
76 \r
77 call SetupLibs.bat\r
78 \r
79 rem\r
80 rem set vcredist here so that it is correctly expanded in the if body \r
81 rem\r
82 set vcredist=BootStrapper\Packages\vcredist_x86\vcredist_x86.exe\r
83 \r
84 if Defined FrameworkSDKDir (\r
85 \r
86 rem\r
87 rem vcredist_x86.exe path relative to FrameworkSDKDir\r
88 rem \r
89 if Exist "%FrameworkSDKDir%\%vcredist%" (\r
90 \r
91 echo Copying Visual C x86 Redistributable Installer\r
92 \r
93 rem\r
94 rem Use /Y so we allways have the current version of the installer.\r
95 rem\r
96 \r
97 copy /Y "%FrameworkSDKDir%\%vcredist%" ..\Build\Release\\r
98 copy /Y "%FrameworkSDKDir%\%vcredist%" ..\Build\Debug\\r
99 \r
100 ) else (\r
101         echo "**** %FrameworkSDKDir%\%vcredist% not found ****"\r
102 )\r
103 ) else (\r
104         echo "**** Warning FrameworkSDKDir not defined ****"\r
105         echo "****         Run vsvars32.bat            ****"\r
106 )\r
107 \r
108 echo Running Message Compiler\r
109 \r
110 cd ..\lib\win32\bindevt\r
111 mc bindevt.mc\r
112 cd ..\..\..\win32utils\r
113 \r
114 rem Done\r