]>
Commit | Line | Data |
---|---|---|
8f36f657 CP |
1 | rem @echo off\r |
2 | mkdir compiled\r | |
3 | del /q compiled\*.js\r | |
4 | \r | |
b481a99a | 5 | cd js\r |
16b678e0 | 6 | copy version.js + jslib.js + irc\ircconnection.js + irc\irclib.js + irc\baseirc.js + irc\irctracker.js + irc\commandparser.js + irc\ircclient.js + ui\baseui.js + ui\colour.js + ui\theme.js ..\compiled\qwebirc-concat.js /b\r |
8f36f657 CP |
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 qwebirc-concat.js > qwebirc-compiled.js\r | |
11 | if not %errorlevel% == 0 goto error\r | |
12 | \r | |
13 | java -jar ..\bin\yuicompressor-2.3.5.jar ..\js\ui\uglyui.js > uglyui-compiled.js\r | |
14 | if not %errorlevel% == 0 goto error\r | |
ecde4837 | 15 | \r |
8f36f657 CP |
16 | java -jar ..\bin\yuicompressor-2.3.5.jar swmui-concat.js > swmui-compiled.js\r |
17 | if not %errorlevel% == 0 goto error\r | |
18 | goto ok\r | |
ecde4837 | 19 | \r |
8f36f657 CP |
20 | :error\r |
21 | cd ..\r | |
22 | del /q compiled\*-compiled.js\r | |
ecde4837 | 23 | pause\r |
8f36f657 | 24 | goto end\r |
ecde4837 CP |
25 | \r |
26 | :ok\r | |
8f36f657 CP |
27 | cd ..\r |
28 | copy js\copyright.js + compiled\qwebirc-compiled.js /b static\js\qwebirc.js\r | |
29 | copy js\copyright.js + compiled\uglyui-compiled.js /b static\js\uglyui.js\r | |
30 | copy js\copyright.js + compiled\swmui-compiled.js /b static\js\swmui.js\r | |
31 | del /q compiled\*.js\r | |
32 | rmdir compiled\r | |
33 | \r | |
ecde4837 CP |
34 | goto end\r |
35 | \r | |
36 | :end\r |