-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake_src_dist.bat
157 lines (133 loc) · 7.29 KB
/
make_src_dist.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
@REM Expecting cwd in the lbdmf root folder of the project when this script is called.
set PACKAGINGROOT=%CD%
set BINARIESROOT=%CD%\..
set TOOLSFOLDER=Z:\Q\develop\Tools
set VENDORFOLDER=Z:\Q\develop\Projects\lbdmf\vendor
set DEVROOT=dist\dist_iss_src\Develop\Projects\lbdmf
del /Q /S dist
if not EXIST "dist" mkdir dist
if not EXIST "dist\dist_iss" mkdir dist\dist_iss
if not EXIST "dist\dist_iss_src" mkdir dist\dist_iss_src
if not EXIST "dist\dist_iss_src\Develop" mkdir dist\dist_iss_src\Develop
if not EXIST "dist\dist_iss_src\Develop\Projects" mkdir dist\dist_iss_src\Develop\Projects
if not EXIST "dist\dist_iss_src\Develop\Projects\dll" mkdir dist\dist_iss_src\Develop\Projects\dll
if not EXIST "dist\dist_iss_src\Develop\Projects\dll\libs" mkdir dist\dist_iss_src\Develop\Projects\dll\libs
if not EXIST "dist\dist_iss_src\Develop\Projects\Plugins" mkdir dist\dist_iss_src\Develop\Projects\Plugins
if not EXIST "dist\dist_iss_src\Develop\Projects\Plugins\libs" mkdir dist\dist_iss_src\Develop\Projects\Plugins\libs
if not EXIST "dist\dist_iss_src\Develop\Projects\bin" mkdir dist\dist_iss_src\Develop\Projects\bin
if not EXIST "dist\dist_iss_src\Develop\Projects\lib" mkdir dist\dist_iss_src\Develop\Projects\lib
if not EXIST "dist\dist_iss_src\Develop\Projects\dll\include" mkdir dist\dist_iss_src\Develop\Projects\dll\include
if not EXIST "dist\dist_iss_src\Develop\Projects\lib\include" mkdir dist\dist_iss_src\Develop\Projects\lib\include
if not EXIST "dist\dist_iss_MinGW" mkdir dist\dist_iss_MinGW
@REM Prepare files for relative packaging mechanism
if not EXIST "dist\dist_iss_MinGW_Get" mkdir dist\dist_iss_MinGW_Get
if not EXIST "dist\dist_iss_psqlodbc" mkdir dist\dist_iss_psqlodbc
if not EXIST "dist\dist_iss_BinBuildTools" mkdir dist\dist_iss_BinBuildTools
if not EXIST "dist\dist_iss_BinBuildTools\Graphviz2.26.3" mkdir dist\dist_iss_BinBuildTools\Graphviz2.26.3
if not EXIST "dist\dist_iss_BinBuildTools\doxygen" mkdir dist\dist_iss_BinBuildTools\doxygen
if not EXIST "dist\dist_iss_wxLua_dist" mkdir dist\dist_iss_wxLua_dist
if not EXIST "dist\dist_iss_MkMk" mkdir dist\dist_iss_MkMk
if not EXIST "dist\bindist_iss" mkdir dist\bindist_iss
if not EXIST "dist\bindist_iss\bin" mkdir dist\bindist_iss\bin
if not EXIST "dist\bindist_iss\dll" mkdir dist\bindist_iss\dll
if not EXIST "dist\bindist_iss\plugins" mkdir dist\bindist_iss\plugins
if not EXIST "dist\bindist_iss_MinGW_Libraries" mkdir dist\bindist_iss_MinGW_Libraries
if not EXIST "dist\bindist_iss_Watcom_Libraries" mkdir dist\bindist_iss_Watcom_Libraries
7z x vendor\MinGW.zip -odist\dist_iss_MinGW
copy %TOOLSFOLDER%\mingw\bin\mingwm10.dll dist\bindist_iss_MinGW_Libraries
copy %TOOLSFOLDER%\mingw\bin\libgcc_s_dw2-1.dll dist\bindist_iss_MinGW_Libraries
copy "%TOOLSFOLDER%\mingw\bin\libstdc++-6.dll" dist\bindist_iss_MinGW_Libraries
copy %TOOLSFOLDER%\WatcomLibs\mt7r17.dll dist\bindist_iss_Watcom_Libraries
copy %TOOLSFOLDER%\WatcomLibs\clbr17.dll dist\bindist_iss_Watcom_Libraries
copy %TOOLSFOLDER%\WatcomLibs\plbr17.dll dist\bindist_iss_Watcom_Libraries
copy %TOOLSFOLDER%\MkMk\MkMk.exe dist\dist_iss_MkMk
copy %TOOLSFOLDER%\curl\*.* dist\dist_iss
xcopy /S /E %TOOLSFOLDER%\MinGW_Get\*.* dist\dist_iss_MinGW_Get
@REM DEPENDENCY
copy %TOOLSFOLDER%\XSLTProc\xsltproc.exe dist\bindist_iss\bin
copy %TOOLSFOLDER%\XSLTProc\zlib1.dll dist\bindist_iss\dll
copy %TOOLSFOLDER%\XSLTProc\libxslt.dll dist\bindist_iss\dll
copy %TOOLSFOLDER%\XSLTProc\libexslt.dll dist\bindist_iss\dll
copy %TOOLSFOLDER%\PostgreSQL\psqlodbc.dll dist\dist_iss_psqlodbc
copy %TOOLSFOLDER%\BinBuildTools\*.* dist\dist_iss_BinBuildTools
xcopy /S /E Z:\Q\develop\Tools\doxygen\*.* dist\dist_iss_BinBuildTools\doxygen
xcopy /S /E Z:\Q\develop\Tools\Graphviz2.26.3\*.* dist\dist_iss_BinBuildTools\Graphviz2.26.3
copy Z:\Q\develop\wxwin\wx\lib\gcc_dll\*.dll dist\bindist_iss\dll
@REM Copy binary files
copy %BINARIESROOT%\bin dist\bindist_iss\bin
copy %BINARIESROOT%\dll dist\bindist_iss\dll
copy %BINARIESROOT%\plugins dist\bindist_iss\plugins
copy %TOOLSFOLDER%\wxLua-dist\*.* dist\dist_iss_wxLua_dist
echo CVS\ > XCopyIgnores.txt
call make_dist_base.bat AppDevelopmentDemo
call make_dist_base.bat AppDevelopmentDemo\App
call make_dist_base.bat AppDevelopmentDemo\DynamicApp
call make_dist_base.bat AppDevelopmentDemo\DynamicApp\App
call make_dist_base.bat AppDevelopmentDemo\DynamicApp\Doc
call make_dist_base.bat AppDevelopmentDemo\DynamicApp\UMLSamples
call make_dist_base.bat BaseDevelopment\lbHook
call make_dist_base.bat BaseDevelopment\lbclasses
call make_dist_base.bat BaseDevelopment\lbcs
call make_dist_base.bat BaseDevelopment\lbDB
call make_dist_base.bat BaseDevelopment\lbPluginManager
call make_dist_base.bat BaseDevelopment\lbMetaApplication
call make_dist_base.bat BaseDevelopment\lbWorkflowEngine
call make_dist_base.bat BaseDevelopment\lbModule
call make_dist_base.bat BaseDevelopment\lbtransfer
call make_dist_base.bat BaseDevelopment\lbXMLConfig\lbDOMConfig
call make_dist_base.bat Plugins
call make_dist_base.bat vendor\mkmk
call make_dist_base.bat vendor\antlr3
call make_dist_base.bat vendor\sqlite
call make_dist_base.bat vendor\databaselayer
call make_dist_base.bat vendor\dosdir
call make_dist_base.bat vendor\propgrid
call make_dist_base.bat vendor\wxShapeFramework
call make_dist_base.bat vendor\wxaui-0.9.1
call make_dist_base.bat vendor\libxml2-2.8.0
call make_dist_base.bat vendor\libxslt-1.1.21
call make_dist_base.bat vendor\wxJSON-1.2.1
call make_dist_base.bat include
call make_dist_base.bat interfaces
call make_dist_base.bat make
call make_dist_base.bat test
call make_dist_base.bat Compilers
call make_dist_base.bat Database
call make_dist_base.bat Samples
call make_dist_base.bat Modules
call make_dist_base.bat RegressionTests
copy makewat.env %DEVROOT%
copy makefile.wat %DEVROOT%
copy README %DEVROOT%
copy COPYING %DEVROOT%
copy doxygen.conf %DEVROOT%
copy BaseDevelopment\makefile %DEVROOT%\BaseDevelopment
copy BaseDevelopment\make.bat %DEVROOT%\BaseDevelopment
copy %PACKAGINGROOT%\watcomenv.bat %DEVROOT%
copy vendor\makefile.module.libxslt %DEVROOT%\vendor
copy vendor\makefile.libxslt.bootstrap %DEVROOT%\vendor
copy vendor\xsltconfig-1.1.34.h %DEVROOT%\vendor
copy %PACKAGINGROOT%\watcomenv.bat.lnk dist
@REM Does not exist in jenkins build
@REM copy %PACKAGINGROOT%\..\ide.bat %DEVROOT%
del *.idb
del %DEVROOT%\vendor\libxml2-2.6.29\bakefile\watcom\*.obj
del %DEVROOT%\AppDevelopmentDemo\DynamicApp\Doc\*.tiff
del %DEVROOT%\AppDevelopmentDemo\DynamicApp\Doc\*.rtf
del %DEVROOT%\AppDevelopmentDemo\DynamicApp\Doc\*.odt
@rem Ensure the source installation will fully recreate required makefiles
touch %DEVROOT%\BaseDevelopment\Makefile
@REM Make any available XMISettings.xsl configuration files writeable, or simply all.
attrib /S -R %DEVROOT%\AppDevelopmentDemo\DynamicApp\XSLT_Templates\*.*
@REM Dependency to tools
"%TOOLSFOLDER%\Inno Setup\iscc" %PACKAGINGROOT%\dist.iss
if %errorlevel% neq 0 exit /b %errorlevel%
"%TOOLSFOLDER%\Inno Setup\iscc" %PACKAGINGROOT%\bindist.iss
if %errorlevel% neq 0 exit /b %errorlevel%
"%TOOLSFOLDER%\Inno Setup\iscc" %PACKAGINGROOT%\docdist.iss
if %errorlevel% neq 0 exit /b %errorlevel%
"%TOOLSFOLDER%\Inno Setup\iscc" %PACKAGINGROOT%\bin-buildtools-dist.iss
@REM if %errorlevel% neq 0 exit /b %errorlevel%
@REM "%TOOLSFOLDER%\Inno Setup\iscc" %PACKAGINGROOT%\MinGW-3.4.5-Repackaged.iss
if %errorlevel% neq 0 exit /b %errorlevel%
"%TOOLSFOLDER%\Inno Setup\iscc" %PACKAGINGROOT%\templatedist.iss