#!/bin/sh
+python pagegen.py
+
mkdir -p compiled
rm -f compiled/*.js
cd js
-cat 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
-cat ui/swmlayout.js ui/swmui.js > ../compiled/swmui-concat.js
+cat 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 irc/commandhistory.js ui/hilightcontroller.js ui/menuitems.js ui/tabcompleter.js qwebircinterface.js > ../compiled/qwebirc-concat.js
+cat ui/swmui.js ui/swmlayout.js > ../compiled/swmui-concat.js
error() {
cd ..
}
xjarit() {
- SRC=$1
- DST=$2
+ local SRC=$1
+ local DST=$2
cd compiled
java -jar ../bin/yuicompressor-2.3.5.jar $SRC.js > $DST.js
if [ "$?" != 0 ]; then
jarit() {
SRC=$1
- DST=$2-compiled
+ DST=$2
- xjarit $SRC $DST
+ xjarit $SRC $DST-compiled
catit $DST
- rm compiled/$DST.js
+ rm compiled/$DST-compiled.js
}
cd ..
jarit ../js/ui/uglyui uglyui
jarit swmui-concat swmui
jarit ../js/ui/mochaui mochaui
+jarit ../js/ui/qui qui
rm compiled/{swmui,qwebirc}-concat.js