1 @REM setup the VisualStudio environment vars
2 call "%VS71COMNTOOLS%\vsvars32.bat"
5 devenv
/build Release CouchDb.sln
6 @
if not %errorlevel%==0 exit /B
%errorlevel%
8 @REM build the kit directory
9 mkdir win32_kit\CouchDb\
11 @REM Compile the Erlang couch builder utility
12 "%ERLANG_ROOT%\bin\erlc" build_couch.erl
13 @
if not %errorlevel%==0 exit /B
%errorlevel%
15 @REM Make the app and rel
files
16 "%ERLANG_ROOT%\bin\erl" -noshell
-run build_couch compile_all
17 @
if not %errorlevel%==0 exit /B
%errorlevel%
19 "%ERLANG_ROOT%\bin\erl" -noshell
-run build_couch output_full_libs
"win32_kit/CouchDb/"
20 @
if not %errorlevel%==0 exit /B
%errorlevel%
23 xcopy dist\common win32_kit\CouchDb\
/S
/E
/D
/Y
24 xcopy dist\win32 win32_kit\CouchDb\
/S
/E
/D
/Y
25 xcopy couch.
boot win32_kit\CouchDb\
/D
/Y
26 xcopy "%ERTS_ROOT%\bin\erl.exe" win32_kit\CouchDb\
/D
/Y
27 xcopy "%ERTS_ROOT%\bin\beam.dll" win32_kit\CouchDb\
/D
/Y
28 xcopy "%ERTS_ROOT%\bin\erlexec.dll" win32_kit\CouchDb\
/D
/Y
29 xcopy "%ERTS_ROOT%\bin\inet_gethost.exe" win32_kit\CouchDb\
/D
/Y
30 xcopy FabricServer\Release\FabricServer.exe win32_kit\CouchDb\
/D
/Y
31 xcopy CouchDb\Release\couch_erl_driver.dll win32_kit\CouchDb\
/D
/Y
32 xcopy "%ICU_ROOT%\bin\icudt??.dll" win32_kit\CouchDb\
/D
/Y
33 xcopy "%ICU_ROOT%\bin\icuin??.dll" win32_kit\CouchDb\
/D
/Y
34 xcopy "%ICU_ROOT%\bin\icuuc??.dll" win32_kit\CouchDb\
/D
/Y
35 xcopy "%SystemRoot%\system32\msvcr71.dll" win32_kit\CouchDb\
/D
/Y