summary refs log tree commit diff stats
path: root/win32/deps/libxml2/release-x86.bat
blob: 62a18ece8c3f3619fead233f6888a66d4a060fa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
:: run this from a command prompt
@echo off

SET PACKAGE_NAME=libxml2-2.9.0

copy win32\vc10\Release\runsuite.exe .
set PATH=%PATH%;..\build\Win32\bin;win32\vc10\Release
runsuite.exe
del runsuite.exe
set LIBXML_SRC=%cd%
set LIBXML_DEST=%cd%-x86
echo.Press return when ready to install!
pause

rmdir /q /s %LIBXML_DEST%
mkdir %LIBXML_DEST%
mkdir %LIBXML_DEST%\bin
mkdir %LIBXML_DEST%\include
mkdir %LIBXML_DEST%\include\libxml
mkdir %LIBXML_DEST%\lib
mkdir %LIBXML_DEST%\share
mkdir %LIBXML_DEST%\share\doc
mkdir %LIBXML_DEST%\share\doc\libxml2
copy win32\vc10\Release\libxml2.dll %LIBXML_DEST%\bin
copy win32\vc10\Release\runsuite.exe %LIBXML_DEST%\bin
copy win32\vc10\Release\libxml2.lib %LIBXML_DEST%\lib
copy include\win32config.h %LIBXML_DEST%\include
copy include\wsockcompat.h %LIBXML_DEST%\include
xcopy /s include\libxml\*.h %LIBXML_DEST%\include\libxml\
copy COPYING %LIBXML_DEST%\share\doc\libxml2

cd %LIBXML_DEST%
set PATH=%PATH%;%ProgramFiles%\7-zip
del ..\%PACKAGE_NAME%-x86.7z
7z a ..\%PACKAGE_NAME%-x86.7z *
cd %LIBXML_SRC%
rmdir /q /s %LIBXML_DEST%

echo.Finished!
pause