-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
79 lines (42 loc) · 2.97 KB
/
build.bat
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@echo off
@call clean.bat
@copy configure.in wsf_c\configure.in
@copy wsf_c_build.bat wsf_c\build.bat
set WSFPHP_VERSION=2.1.0
@cd wsf_c
@call build.bat
@cd ..
@mkdir wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@xcopy /E /Q /Y /I wsf_c\wso2-wsf-c-bin-%WSFC_VERSION% wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\services rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\services
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\docs rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\docs
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\modules\savan rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\modules\savan
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\samples rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\samples
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\ides rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\ides
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\bin\samples rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\bin\samples
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\bin\tools rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\bin\tools
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\bin\docs rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\bin\docs
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\modules\logging rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\modules\logging
@if exist scripts xcopy /Y /I /Q /E scripts wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\scripts
@if exist samples xcopy /Y /I /Q /E samples wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\samples
@if exist docs xcopy /Y /I /Q /E docs wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\docs
@if exist NOTICE copy /Y NOTICE wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@if exist README.INSTALL_WIN32 copy /Y README.INSTALL_WIN32 wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@if exist README.INSTALL copy /Y README.INSTALL wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@if exist LICENSE copy /Y LICENSE wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@if exist NEWS copy /Y NEWS wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@if exist AUTHORS copy /Y AUTHORS wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@if exist README copy /Y README wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@if exist COPYING copy /Y COPYING wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@if exist ChangeLog copy /Y ChangeLog wso2-wsf-php-bin-%WSFPHP_VERSION%-win32
@cd src
@nmake /nologo -f build.mk dist
@cd ..
@if exist wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\include rmdir /S /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\include
@del /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\lib\*.exp
@del /Q wso2-wsf-php-bin-%WSFPHP_VERSION%-win32\wsf_c\lib\*.lib
@if "%WSFPHP_SNAPSHOT%"=="1" goto :snapshot
goto :end
:snapshot
move wso2-wsf-php-bin-%WSFPHP_VERSION%-win32 wso2-wsf-php-bin-snapshot-win32
:end