@echo off\r
-del compiled.js\r
-del concat.js\r
-cd static\js\r
-copy version.js + jslib.js + irc\ircconnection.js + irc\irclib.js + irc\baseirc.js + irc\irctracker.js + irc\commandparser.js + irc\ircclient.js + ui\uibase.js + ui\colour.js + ui\theme.js + ui\uglyui.js ..\..\concat.js /b\r
-cd ..\..\r
-java -jar bin\yuicompressor-2.3.5.jar concat.js > compiled.js\r
+mkdir compiled\r
+del /q compiled\*.js\r
\r
-if %errorlevel% == 0 goto ok\r
+cd js\r
+copy qwebirc.js + version.js + jslib.js + irc\ircconnection.js + irc\irclib.js + irc\numerics.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 + ui\genericlogin.js + ui\embedwizard.js + qwebircinterface.js + irc\commandhistory.js ..\compiled\qwebirc-concat.js /b\r
+copy ui\swmui.js + ui\swmlayout.js ..\compiled\swmui-concat.js /b\r
+cd ..\compiled\r
\r
-del compiled.js\r
+java -jar ..\bin\yuicompressor-2.3.5.jar ..\static\js\mochaui\mocha.js > mocha-compressed.js\r
+if not %errorlevel% == 0 goto error\r
+\r
+java -jar ..\bin\yuicompressor-2.3.5.jar qwebirc-concat.js > qwebirc-compiled.js\r
+if not %errorlevel% == 0 goto error\r
+\r
+java -jar ..\bin\yuicompressor-2.3.5.jar ..\js\ui\uglyui.js > uglyui-compiled.js\r
+if not %errorlevel% == 0 goto error\r
+\r
+java -jar ..\bin\yuicompressor-2.3.5.jar swmui-concat.js > swmui-compiled.js\r
+if not %errorlevel% == 0 goto error\r
+\r
+java -jar ..\bin\yuicompressor-2.3.5.jar ..\js\ui\mochaui.js > mochaui-compiled.js\r
+if not %errorlevel% == 0 goto error\r
+\r
+java -jar ..\bin\yuicompressor-2.3.5.jar ..\js\ui\qui.js > qui-compiled.js\r
+if not %errorlevel% == 0 goto error\r
+\r
+goto ok\r
+:error\r
+cd ..\r
+del /q compiled\*-compiled.js\r
pause\r
-goto ene\r
+goto end\r
\r
:ok\r
-del concat.js\r
+cd ..\r
+copy compiled\mocha-compressed.js /b static\js\mochaui\mocha-compressed.js\r
+\r
+copy js\copyright.js + compiled\qwebirc-compiled.js /b static\js\qwebirc.js\r
+copy js\copyright.js + compiled\uglyui-compiled.js /b static\js\uglyui.js\r
+copy js\copyright.js + compiled\swmui-compiled.js /b static\js\swmui.js\r
+copy js\copyright.js + compiled\mochaui-compiled.js /b static\js\mochaui.js\r
+copy js\copyright.js + compiled\qui-compiled.js /b static\js\qui.js\r
+del /q compiled\*.js\r
+rmdir compiled\r
+\r
goto end\r
\r
:end\r