7 rem %1 - variable name
\r
8 rem %2-x - allowed values
\r
18 set __values=%1 %__values%
\r
20 if not "%1"=="" goto __allowed
\r
24 for %%a in (%__values%) do if %%a==%__res% set __value=%__res%
\r
25 if defined __value goto :__input_value_end
\r
27 echo Value '%__res%' is incorrect
\r
28 echo Enter valid value from [ %__values% ]:
\r
33 set %__var_name%=%__value%
\r
40 set languages=en ru ge et
\r
41 set __CPU_type=p5 p6 k6
\r
44 echo Build KolibriOS apps
\r
45 echo Enter valid language
\r
47 call :input_value res %languages%
\r
48 echo lang fix %res% > lang.inc
\r
50 echo Enter CPU_type ("p5" for interrupt, "p6" for SYSENTER, "k6" for SYSCALL)
\r
51 call :input_value res %__CPU_type%
\r
52 echo __CPU_type fix %res% > config.inc
\r
54 for %%i in (%BIN% %BIN%\demos %BIN%\develop %BIN%\lib %BIN%\games %BIN%\network %BIN%\3d %BIN%\fonts %BIN%\nightbuild) do if not exist %%i mkdir %%i
\r
57 echo Building system
\r
59 fasm system\calendar\trunk\calendar.asm %BIN%\calendar
\r
60 fasm system\board\trunk\board.asm %BIN%\develop\board
\r
61 fasm system\commouse\trunk\commouse.asm %BIN%\commouse
\r
62 fasm system\cpu\trunk\cpu.asm %BIN%\cpu
\r
63 fasm system\cpuid\trunk\cpuid.asm %BIN%\cpuid
\r
64 fasm system\skincfg\trunk\skincfg.asm %BIN%\skincfg
\r
65 fasm system\docpack\trunk\docpack.asm %BIN%\docpack
\r
66 fasm system\end\trunk\end.asm %BIN%\end
\r
67 fasm system\gmon\gmon.asm %BIN%\gmon
\r
68 fasm system\icon\trunk\icon.asm %BIN%\icon
\r
69 fasm system\kbd\trunk\kbd.ASM %BIN%\kbd
\r
70 fasm system\launcher\trunk\launcher.asm %BIN%\launcher
\r
71 fasm system\menu\trunk\menu.asm %BIN%\@menu
\r
72 fasm system\mgb\trunk\mgb.asm %BIN%\mgb
\r
73 fasm system\mousemul\trunk\mousemul.asm %BIN%\mousemul
\r
74 fasm system\PANEL\trunk\@TASKBAR.ASM %BIN%\@TASKBAR
\r
75 fasm system\pcidev\trunk\pcidev.asm %BIN%\pcidev
\r
76 fasm system\RB\trunk\@RB.ASM %BIN%\@RB
\r
77 fasm system\rdsave\trunk\rdsave.asm %BIN%\rdsave
\r
78 fasm system\run\trunk\run.asm %BIN%\run
\r
79 fasm system\setup\trunk\setup.asm %BIN%\setup
\r
80 fasm system\skinsel\skinsel.asm %BIN%\skinsel
\r
81 fasm system\ss\trunk\@ss.asm %BIN%\@ss
\r
82 fasm system\vrr\trunk\vrr.asm %BIN%\vrr
\r
83 fasm system\vrr_m\trunk\vrr_m.asm %BIN%\vrr_m
\r
84 fasm system\zkey\trunk\zkey.asm %BIN%\zkey
\r
87 echo Building develop
\r
89 fasm develop\cmd\trunk\cmd.asm %BIN%\cmd
\r
90 fasm develop\fasm\trunk\fasm.asm %BIN%\develop\fasm
\r
91 fasm develop\h2d2b\trunk\h2d2b.asm %BIN%\develop\h2d2b
\r
92 fasm develop\heed\trunk\heed.asm %BIN%\demos\heed
\r
93 rem fasm develop\hexview\trunk\hexview.asm hexview
\r
94 fasm develop\keyascii\trunk\keyascii.asm %BIN%\develop\keyascii
\r
95 fasm develop\mtdbg\mtdbg.asm %BIN%\develop\mtdbg
\r
96 rem fasm develop\param\trunk\param.asm param
\r
97 fasm develop\scancode\trunk\scancode.asm %BIN%\develop\scancode
\r
98 fasm develop\tinypad\trunk\tinypad.asm %BIN%\tinypad
\r
99 fasm develop\cObj\trunk\cObj.asm %BIN%\develop\cObj
\r
102 echo Building systems libraries
\r
104 fasm develop\libraries\box_lib\trunk\box_lib.asm %BIN%\lib\box_lib.obj
\r
105 fasm develop\libraries\console\console.asm %BIN%\lib\console.obj
\r
106 fasm develop\libraries\libs-dev\libgfx\libgfx.asm %BIN%\lib\libgfx.obj
\r
107 fasm develop\libraries\libs-dev\libimg\libimg.asm %BIN%\lib\libimg.obj
\r
108 fasm develop\libraries\libs-dev\libini\libini.asm %BIN%\lib\libini.obj
\r
109 fasm develop\libraries\libs-dev\libio\libio.asm %BIN%\lib\libio.obj
\r
114 fasm fs\copy2\trunk\copy2.asm %BIN%\copy2
\r
115 fasm fs\copyr\trunk\copyr.asm %BIN%\copyr
\r
116 fasm fs\kfar\trunk\kfar.asm %BIN%\kfar
\r
117 rem fasm fs\mfar\trunk\mfar.asm %BIN%\mfar
\r
118 fasm fs\sysxtree\trunk\sysxtree.asm %BIN%\sysxtree
\r
121 echo Building network
\r
123 fasm network\airc\trunk\airc.asm %BIN%\network\airc
\r
124 fasm network\arpstat\trunk\arpstat.asm %BIN%\network\arpstat
\r
125 fasm network\autodhcp\trunk\autodhcp.asm %BIN%\network\autodhcp
\r
126 fasm network\chess\trunk\chess.asm %BIN%\network\chess
\r
127 fasm network\dhcp\trunk\dhcp.asm %BIN%\network\dhcp
\r
128 fasm network\dnsr\trunk\dnsr.asm %BIN%\network\dnsr
\r
129 fasm network\ethstat\trunk\ethstat.asm %BIN%\network\ethstat
\r
130 fasm network\ftps\trunk\ftps.asm %BIN%\network\ftps
\r
131 fasm network\httpc\trunk\httpc.asm %BIN%\network\httpc
\r
132 fasm network\https\trunk\https.asm %BIN%\network\https
\r
133 fasm network\ipc\trunk\ipc.asm %BIN%\network\ipc
\r
134 fasm network\local\trunk\local.asm %BIN%\network\local
\r
135 fasm network\mp3s\trunk\mp3s.asm %BIN%\network\mp3s
\r
136 fasm network\netsendc\trunk\netsendc.asm %BIN%\network\netsendc
\r
137 fasm network\netsends\trunk\netsends.asm %BIN%\network\netsends
\r
138 fasm network\nntpc\trunk\nntpc.asm %BIN%\network\nntpc
\r
139 fasm network\popc\trunk\popc.asm %BIN%\network\popc
\r
140 fasm network\ppp\trunk\ppp.asm %BIN%\network\ppp
\r
141 fasm network\rccc\trunk\rccc.asm %BIN%\network\rccc
\r
142 fasm network\rccs\trunk\rccs.asm %BIN%\network\rccs
\r
143 fasm network\remote\trunk\remote.asm %BIN%\network\remote
\r
144 fasm network\smtps\trunk\smtps.asm %BIN%\network\smtps
\r
145 fasm network\stackcfg\trunk\stackcfg.asm %BIN%\network\stackcfg
\r
146 fasm network\telnet\trunk\telnet.asm %BIN%\network\telnet
\r
147 fasm network\terminal\trunk\terminal.asm %BIN%\network\terminal
\r
148 fasm network\tftpa\trunk\tftpa.asm %BIN%\network\tftpa
\r
149 fasm network\tftpc\trunk\tftpc.asm %BIN%\network\tftpc
\r
150 fasm network\VNCclient\VNCclient.asm %BIN%\network\VNCclient
\r
151 fasm network\ym\trunk\ym.asm %BIN%\network\ym
\r
154 echo Building other
\r
156 rem fasm other\archer\trunk\@rcher.asm %BIN%\@rcher
\r
157 fasm other\calc\trunk\calc.asm %BIN%\calc
\r
158 fasm other\mhc\trunk\mhc.asm %BIN%\mhc
\r
159 fasm other\period\trunk\period.asm %BIN%\period
\r
160 fasm other\rtfread\trunk\rtfread.asm %BIN%\rtfread
\r
163 echo Building media
\r
165 rem media\ac97snd\trunk\ac97snd.asm ac97snd
\r
166 fasm media\animage\trunk\animage.asm %BIN%\animage
\r
167 fasm media\cdp\trunk\cdp.asm %BIN%\cdp
\r
168 fasm media\gifview\trunk\gifview.asm %BIN%\gifview
\r
169 fasm media\iconedit\trunk\iconedit.asm %BIN%\iconedit
\r
170 fasm media\jpegview\trunk\jpegview.asm %BIN%\jpegview
\r
171 fasm media\midamp\trunk\midamp.asm %BIN%\midamp
\r
172 fasm media\midiplay\trunk\midiplay.asm %BIN%\midiplay
\r
173 fasm media\mixer\trunk\mixer.asm %BIN%\mixer
\r
175 fasm media\mv\trunk\mv.asm %BIN%\mv
\r
176 fasm media\pic4\trunk\pic4.asm %BIN%\pic4
\r
177 fasm media\sb\trunk\sb.asm %BIN%\sb
\r
178 fasm media\scrshoot\scrshoot.asm %BIN%\scrshoot
\r
181 echo Building games
\r
183 fasm games\15\trunk\15.asm %BIN%\games\15
\r
184 fasm games\arcanii\trunk\arcanii.asm %BIN%\games\arcanii
\r
185 fasm games\arcanoid\trunk\arcanoid.asm %BIN%\games\arcanoid
\r
187 nasmw -f bin -o ..\..\..\%BIN%\games\c4 c4.asm
\r
189 fasm games\freecell\freecell.asm %BIN%\games\freecell
\r
190 fasm games\mblocks\trunk\mblocks.asm %BIN%\games\mblocks
\r
191 fasm games\phenix\trunk\phenix.asm %BIN%\games\phenix
\r
192 fasm games\pipes\pipes.asm %BIN%\games\pipes
\r
193 fasm games\pong\trunk\pong.asm %BIN%\games\pong
\r
194 fasm games\pong3\trunk\pong3.asm %BIN%\games\pong3
\r
195 fasm games\snake\snake.asm %BIN%\games\snake
\r
196 copy games\snake\snake.ini %BIN%\games\snake.ini
\r
197 fasm games\tanks\trunk\tanks.asm %BIN%\games\tanks
\r
198 fasm games\tetris\trunk\tetris.asm %BIN%\games\tetris
\r
199 rem fasm games\hunter\trunk\hunter.asm %BIN%\games\hunter
\r
202 echo Building demos
\r
204 fasm demos\3dcube2\trunk\3dcube2.asm %BIN%\3d\3dcube2
\r
205 rem fasm demos\3detx60b\trunk\3detx60b.asm %BIN%\3d\3detx60b
\r
206 fasm demos\3dtcub10\trunk\3dtcub10.asm %BIN%\3d\3dtcub10
\r
207 cd demos\aclock\trunk\
\r
208 nasmw -t -f bin -o ..\..\..\%BIN%\demos\aclock aclock.asm
\r
210 fasm demos\bcdclk\trunk\bcdclk.asm %BIN%\demos\bcdclk
\r
211 fasm demos\bgitest\trunk\bgitest.asm %BIN%\fonts\bgitest
\r
212 fasm demos\colorref\trunk\colorref.asm %BIN%\demos\colorref
\r
213 fasm demos\crownscr\trunk\crownscr.asm %BIN%\3d\crownscr
\r
214 fasm demos\cslide\trunk\cslide.asm %BIN%\demos\cslide
\r
215 fasm demos\eyes\trunk\eyes.asm %BIN%\demos\eyes
\r
216 fasm demos\fire\trunk\fire.asm %BIN%\demos\fire
\r
217 fasm demos\fire2\trunk\fire2.asm %BIN%\demos\fire2
\r
218 fasm demos\firework\trunk\firework.asm %BIN%\demos\firework
\r
219 fasm demos\free3d04\trunk\free3d04.asm %BIN%\3d\free3d04
\r
220 fasm demos\magnify\trunk\magnify.asm %BIN%\magnify
\r
221 fasm demos\movback\trunk\movback.asm %BIN%\demos\movback
\r
222 fasm demos\plasma\trunk\plasma.asm %BIN%\demos\plasma
\r
223 fasm demos\timer\trunk\timer.asm %BIN%\demos\timer
\r
224 fasm demos\tinyfrac\trunk\tinyfrac.asm %BIN%\demos\tinyfrac
\r
225 fasm demos\transp\trunk\transp.asm %BIN%\demos\transp
\r
226 fasm demos\trantest\trunk\trantest.asm %BIN%\demos\trantest
\r
227 fasm demos\tube\trunk\tube.asm %BIN%\demos\tube
\r
228 fasm demos\unvwater\trunk\unvwater.asm %BIN%\demos\unvwater
\r
231 echo Building depend application for fdd's nightbuild
\r
233 echo __nightbuild fix yes >> config.inc
\r
234 fasm media\kiv\trunk\kiv.asm %BIN%\nightbuild\kiv
\r
235 fasm media\scrshoot\scrshoot.asm %BIN%\nightbuild\scrshoot
\r
236 fasm media\animage\trunk\animage.asm %BIN%\nightbuild\animage
\r
237 fasm media\midamp\trunk\midamp.asm %BIN%\nightbuild\midamp
\r
238 fasm develop\heed\trunk\heed.asm %BIN%\nightbuild\heed
\r
239 fasm develop\tinypad\trunk\tinypad.asm %BIN%\nightbuild\tinypad
\r
240 fasm system\skincfg\trunk\skincfg.asm %BIN%\nightbuild\skincfg
\r
241 fasm system\hdd_info\trunk\hdd_info.asm %BIN%\nightbuild\hdd_info
\r
242 fasm system\mgb\trunk\mgb.asm %BIN%\nightbuild\mgb
\r
243 fasm system\rdsave\trunk\rdsave.asm %BIN%\nightbuild\rdsave
\r
244 fasm other\kpack\trunk\kpack.asm %BIN%\nightbuild\kpack
\r
245 fasm other\rtfread\trunk\rtfread.asm %BIN%\nightbuild\rtfread
\r
247 echo __CPU_type fix %res% > config.inc
\r
251 echo Finished building
\r
255 kpack /nologo 2> nul
\r
256 if "%errorlevel%"=="9009" (
\r
257 echo *** NOTICE ***
\r
258 echo If you want to pack all applications you may
\r
259 echo place "kpack" in accessible directory.
\r
260 echo You can download that tool from http://diamondz.land.ru/
\r
264 echo Kpack KolibriOS apps?
\r
272 echo Compressing system
\r
274 kpack %BIN%\calendar
\r
275 kpack %BIN%\develop\board
\r
278 kpack %BIN%\skincfg
\r
279 kpack %BIN%\docpack
\r
284 kpack %BIN%\launcher
\r
287 kpack %BIN%\@TASKBAR
\r
293 kpack %BIN%\skinsel
\r
300 echo Compressing develop
\r
304 kpack %BIN%\develop\fasm
\r
305 kpack %BIN%\develop\h2d2b
\r
306 kpack %BIN%\demos\heed
\r
307 kpack %BIN%\develop\keyascii
\r
308 kpack %BIN%\develop\mtdbg
\r
309 kpack %BIN%\develop\scancode
\r
312 echo Compressing libraries
\r
315 kpack %BIN%\lib\box_lib.obj
\r
316 kpack %BIN%\lib\console.obj
\r
317 kpack %BIN%\lib\libsgfx.obj
\r
318 kpack %BIN%\lib\libimg.obj
\r
319 kpack %BIN%\lib\libini.obj
\r
320 kpack %BIN%\lib\libio.obj
\r
324 echo Compressing fs
\r
330 kpack %BIN%\sysxtree
\r
333 echo Compressing network
\r
336 kpack %BIN%\network\airc
\r
337 kpack %BIN%\network\arpstat
\r
338 kpack %BIN%\network\autodhcp
\r
339 kpack %BIN%\network\chess
\r
340 kpack %BIN%\network\dhcp
\r
341 kpack %BIN%\network\dnsr
\r
342 kpack %BIN%\network\ethstat
\r
343 kpack %BIN%\network\httpc
\r
344 kpack %BIN%\network\https
\r
345 kpack %BIN%\network\ipc
\r
346 kpack %BIN%\network\local
\r
347 kpack %BIN%\network\netsendc
\r
348 kpack %BIN%\network\netsends
\r
349 kpack %BIN%\network\nntpc
\r
350 kpack %BIN%\network\popc
\r
351 kpack %BIN%\network\ppp
\r
352 kpack %BIN%\network\rccc
\r
353 kpack %BIN%\network\rccs
\r
354 kpack %BIN%\network\remote
\r
355 kpack %BIN%\network\smtps
\r
356 kpack %BIN%\network\stackcfg
\r
357 kpack %BIN%\network\telnet
\r
358 kpack %BIN%\network\terminal
\r
359 kpack %BIN%\network\tftpa
\r
360 kpack %BIN%\network\tftpc
\r
361 kpack %BIN%\network\VNCclient
\r
362 kpack %BIN%\network\ym
\r
365 echo Compressing other
\r
368 rem kpack %BIN%\@rcher
\r
372 kpack %BIN%\rtfread
\r
375 echo Compressing media
\r
378 kpack %BIN%\animage
\r
380 kpack %BIN%\gifview
\r
381 kpack %BIN%\iconedit
\r
382 kpack %BIN%\jpegview
\r
384 kpack %BIN%\midiplay
\r
390 kpack %BIN%\scrshoot
\r
393 echo Compressing games
\r
396 kpack %BIN%\games\15
\r
397 kpack %BIN%\games\arcanii
\r
398 kpack %BIN%\games\arcanoid
\r
399 kpack %BIN%\games\freecell
\r
400 kpack %BIN%\games\mblocks
\r
401 kpack %BIN%\games\phenix
\r
402 kpack %BIN%\games\pipes
\r
403 kpack %BIN%\games\pong
\r
404 kpack %BIN%\games\pong3
\r
405 kpack %BIN%\games\tanks
\r
406 kpack %BIN%\games\tetris
\r
409 echo Compressing demos
\r
412 kpack %BIN%\3d\3dcube2
\r
413 kpack %BIN%\3d\3dtcub10
\r
414 kpack %BIN%\demos\aclock
\r
415 kpack %BIN%\demos\bcdclk
\r
416 kpack %BIN%\fonts\bgitest
\r
417 kpack %BIN%\demos\colorref
\r
418 kpack %BIN%\3d\crownscr
\r
419 kpack %BIN%\demos\cslide
\r
420 kpack %BIN%\demos\eyes
\r
421 kpack %BIN%\demos\fire
\r
422 kpack %BIN%\demos\fire2
\r
423 kpack %BIN%\demos\firework
\r
424 kpack %BIN%\3d\free3d04
\r
425 kpack %BIN%\magnify
\r
426 kpack %BIN%\demos\movback
\r
427 kpack %BIN%\demos\plasma
\r
428 kpack %BIN%\demos\timer
\r
429 kpack %BIN%\demos\tinyfrac
\r
430 kpack %BIN%\demos\transp
\r
431 kpack %BIN%\demos\trantest
\r
432 kpack %BIN%\demos\tube
\r
433 kpack %BIN%\demos\unvwater
\r
436 echo Compressing nightbuild
\r
438 kpack %BIN%\nightbuild\kiv
\r
439 kpack %BIN%\nightbuild\scrshoot
\r
440 kpack %BIN%\nightbuild\animage
\r
441 kpack %BIN%\nightbuild\midamp
\r
442 kpack %BIN%\nightbuild\heed
\r
443 kpack %BIN%\nightbuild\tinypad
\r
444 kpack %BIN%\nightbuild\skincfg
\r
445 kpack %BIN%\nightbuild\hdd_info
\r
446 kpack %BIN%\nightbuild\mgb
\r
447 kpack %BIN%\nightbuild\rdsave
\r
448 kpack %BIN%\nightbuild\kpack
\r
449 kpack %BIN%\nightbuild\rtfread
\r
452 echo Compressing complete
\r
458 echo Done. Thanks for your choice ;)
\r