]>
Commit | Line | Data |
---|---|---|
1 | @echo off\r | |
2 | mkdir compiled\r | |
3 | del /q compiled\*.js\r | |
4 | \r | |
5 | cd js\r | |
6 | copy version.js + jslib.js + irc\ircconnection.js + irc\irclib.js + irc\baseircclient.js + irc\irctracker.js + irc\commandparser.js + irc\ircclient.js + ui\baseui.js + ui\baseuiwindow.js + ui\colour.js + ui\url.js + ui\theme.js + qwebircinterface.js ..\compiled\qwebirc-concat.js /b\r | |
7 | copy ui\swmlayout.js + ui\swmui.js ..\compiled\swmui-concat.js /b\r | |
8 | cd ..\compiled\r | |
9 | \r | |
10 | java -jar ..\bin\yuicompressor-2.3.5.jar ..\static\js\mochaui\mocha.js > mocha-compressed.js\r | |
11 | if not %errorlevel% == 0 goto error\r | |
12 | \r | |
13 | java -jar ..\bin\yuicompressor-2.3.5.jar qwebirc-concat.js > qwebirc-compiled.js\r | |
14 | if not %errorlevel% == 0 goto error\r | |
15 | \r | |
16 | java -jar ..\bin\yuicompressor-2.3.5.jar ..\js\ui\uglyui.js > uglyui-compiled.js\r | |
17 | if not %errorlevel% == 0 goto error\r | |
18 | \r | |
19 | java -jar ..\bin\yuicompressor-2.3.5.jar swmui-concat.js > swmui-compiled.js\r | |
20 | if not %errorlevel% == 0 goto error\r | |
21 | \r | |
22 | java -jar ..\bin\yuicompressor-2.3.5.jar ..\js\ui\mochaui.js > mochaui-compiled.js\r | |
23 | if not %errorlevel% == 0 goto error\r | |
24 | \r | |
25 | java -jar ..\bin\yuicompressor-2.3.5.jar ..\js\ui\qui.js > qui-compiled.js\r | |
26 | if not %errorlevel% == 0 goto error\r | |
27 | \r | |
28 | goto ok\r | |
29 | :error\r | |
30 | cd ..\r | |
31 | del /q compiled\*-compiled.js\r | |
32 | pause\r | |
33 | goto end\r | |
34 | \r | |
35 | :ok\r | |
36 | cd ..\r | |
37 | copy compiled\mocha-compressed.js /b static\js\mochaui\mocha-compressed.js\r | |
38 | \r | |
39 | copy js\copyright.js + compiled\qwebirc-compiled.js /b static\js\qwebirc.js\r | |
40 | copy js\copyright.js + compiled\uglyui-compiled.js /b static\js\uglyui.js\r | |
41 | copy js\copyright.js + compiled\swmui-compiled.js /b static\js\swmui.js\r | |
42 | copy js\copyright.js + compiled\mochaui-compiled.js /b static\js\mochaui.js\r | |
43 | copy js\copyright.js + compiled\qui-compiled.js /b static\js\qui.js\r | |
44 | del /q compiled\*.js\r | |
45 | rmdir compiled\r | |
46 | \r | |
47 | goto end\r | |
48 | \r | |
49 | :end\r |