-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCollect.bat
294 lines (200 loc) · 7.37 KB
/
Collect.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
@echo off
setlocal enabledelayedexpansion
del Collect.log
:: ###############################################
:: collect Addin Files
:: ###############################################
set Collection=^
"AdvEdit"^
"Base Calc"^
"Beautify"^
"ChartabDBCS"^
"ControlDefs"^
"CP1251ToCP866"^
"CustomFontAddin"^
"FbDebug"^
"FbEditLite"^
"FBFileAssociation"^
"Build\FbShowVars"^
"FileTabStyle"^
"HelpAddin"^
"ProjectZip"^
"QuickEval"^
"ReallyRad"^
"SnipletAddin"^
"Test AIM_FILESTATE"^
"Toolbar"^
"TortoiseSVN"^
"UndoSave"^
"UpdateChecker"
echo .
echo *** get Addins ***
for %%S in (%Collection%) do (
rem copying DLL
rem delimit target with "*" to prevent prompting for "Does xxx specify a file name or directory name on the target (F = file, D = directory)?"
xcopy /F /Y "%CD%\Code\Addins\%%~nS\%%~S.dll" "%CD%\Build\Addins\*" >> Collect.log || goto ERR_Exit
rem copying TXT
xcopy /F /Y "%CD%\Code\Addins\%%~nS\%%~S.txt" "%CD%\Build\Addins\Help\*" >> Collect.log || goto ERR_Exit
)
:: ###############################################
:: collect CustomControl Files
:: ###############################################
echo .
echo *** get CustomControls ***
set Collection=^
"RACodeComplete"^
"RAFile"^
"RAGrid"^
"RAProperty"^
"RAProject"^
"RAEdit"^
"RAHexEd"
for %%S in (%Collection%) do (
rem copying DLL
xcopy /F /Y "%CD%\Code\CustomControl\%%~nS\Build\%%~nS.dll" "%CD%\Build\CustomControl\*" >> Collect.log || goto ERR_Exit
)
set Collection=^
"FBEPictView"^
"FBEVideo"^
"FBEWeb"
for %%S in (%Collection%) do (
rem copying DLL
xcopy /F /Y "%CD%\Code\Samples\CustCtrl\%%~nS\%%~nS.dll" "%CD%\Build\CustomControl\*" >> Collect.log || goto ERR_Exit
)
xcopy /F /Y "%CD%\Code\CustomControl\SpreadSheet\SprSht.dll" "%CD%\Build\CustomControl\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect Language Files
:: ###############################################
echo .
echo *** get Language Files ***
xcopy /F /Y "%CD%\Data\Language\*.*" "%CD%\Build\Language\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect Help Files
:: ###############################################
echo .
echo *** get Help Files ***
xcopy /F /Y "%CD%\Docs\Help\*.chm" "%CD%\Build\Help\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Docs\Help\OldHelp\*.chm" "%CD%\Build\Help\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Redist\Docs\*.chm" "%CD%\Build\Help\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Code\CustomControl\RAResEd\Help\ResEd.chm" "%CD%\Build\Help\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect License Files
:: ###############################################
echo .
echo *** get License Files ***
xcopy /F /Y "%CD%\Redist\Licenses\*.*" "%CD%\Build\Licenses\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect Template Files
:: ###############################################
echo .
echo *** get Template Files ***
xcopy /F /Y "%CD%\Data\Templates\*.*" "%CD%\Build\Templates\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect Sniplet Files
:: ###############################################
echo .
echo *** get Sniplet Files ***
xcopy /F /Y /S "%CD%\Data\Sniplets\*.*" "%CD%\Build\Sniplets\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect Font Files
:: ###############################################
echo .
echo *** get Font Files ***
xcopy /F /Y "%CD%\Data\Fonts\*.*" "%CD%\Build\Fonts\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect API Files
:: ###############################################
echo .
echo *** get API Files ***
xcopy /F /Y "%CD%\Data\Api\*.*" "%CD%\Build\Api\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect Tools Files
:: ###############################################
echo .
xcopy /F /Y "%CD%\Code\Tools\FbEditLNG\Build\FbEditLNG.exe" "%CD%\Build\Tools\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Code\Tools\FbEditLNG\Build\Addins.lng" "%CD%\Build\Tools\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Code\Tools\MakeApi\Build\MakeApi.exe" "%CD%\Build\Tools\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Code\Tools\MakeApi\Build\MakeApi.txt" "%CD%\Build\Tools\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect Include Files
:: ###############################################
echo .
echo *** get Include Files ***
xcopy /F /Y "%CD%\Code\FbEdit\Inc\RA*.bi" "%CD%\Build\Inc\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Code\Addins\FbShowVars\Build\ShowVars.bi" "%CD%\Build\Inc\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Code\FbEdit\Inc\SpreadSheet.bi" "%CD%\Build\Inc\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Code\FbEdit\Inc\Addins.bi" "%CD%\Build\Inc\*" >> Collect.log || goto ERR_Exit
:: ###############################################
:: collect Project Sample Files
:: ###############################################
echo .
echo *** get Project Sample Files ***
:: create exclude filter
:: line feed hack
set LF= ^
:: space required, two empty lines required
set Filter=^
.obj!LF!^
.o!LF!^
.res!LF!^
.exe!LF!^
.undo!LF!^
\bak!LF!^
.tmp!LF!^
.temp
echo !Filter! > Filter.txt
xcopy /F /Y /E /EXCLUDE:Filter.txt "%CD%\Code\Samples\*.*" "%CD%\Build\Projects\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y /E /EXCLUDE:Filter.txt "%CD%\Code\Addins\*.*" "%CD%\Build\Projects\Addins\*" >> Collect.log || goto ERR_Exit
del filter.txt
:: ###############################################
:: collect CustomFilter Files
:: ###############################################
echo .
echo *** get Custom Filter Files ***
:: create exclude filter
:: line feed hack
set LF= ^
:: space required, two empty lines required
set Filter=^
.obj!LF!^
.o!LF!^
.a!LF!^
.res!LF!^
.undo!LF!^
\bak!LF!^
.tmp!LF!^
.temp
echo !Filter! > filter.txt
xcopy /F /Y "%CD%\Code\Samples\Samples\CustomFilter\*.*" "%CD%\Build\CustomFilter\*" >> Collect.log || goto ERR_Exit
del filter.txt
:: ###############################################
:: collect FbEdit Main Files
:: ###############################################
echo .
echo *** get Main Files ***
xcopy /F /Y "%CD%\Code\FbEdit\Build\FbEdit.exe" "%CD%\Build\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\ChangeLog.txt" "%CD%\Build\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Code\FbEditDLL\Build\FbEdit.dll" "%CD%\Build\*" >> Collect.log || goto ERR_Exit
xcopy /F /Y "%CD%\Data\FbEdit.ini" "%CD%\Build\*" >> Collect.log || goto ERR_Exit
echo .
echo *** get tre4.dll + license ***
xcopy /F /Y "%CD%\Requisite\tre*" "%CD%\Build\*" >> Collect.log || goto ERR_Exit
:OK_Exit
echo .
echo ------------------------
echo --- OK - Batch ready ---
echo ------------------------
echo .
echo .
echo .
exit /b 0
:ERR_Exit
echo .
echo ********************************
echo *** ERROR - Batch terminated ***
echo ********************************
echo .
echo .
echo .
Collect.log
exit /b 1