]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | python pagegen.py | |
3 | ||
4 | mkdir -p compiled | |
5 | rm -f compiled/*.js | |
6 | ||
7 | cd js | |
8 | 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 ui/optionspane.js qwebircinterface.js auth.js > ../compiled/qwebirc-concat.js | |
9 | cat ui/swmui.js ui/swmlayout.js > ../compiled/swmui-concat.js | |
10 | ||
11 | error() { | |
12 | cd .. | |
13 | rm compiled/*-compiled.js | |
14 | exit 1 | |
15 | } | |
16 | ||
17 | catit() { | |
18 | cat js/copyright.js compiled/$1-compiled.js > static/js/$1.js | |
19 | } | |
20 | ||
21 | xjarit() { | |
22 | local SRC=$1 | |
23 | local DST=$2 | |
24 | cd compiled | |
25 | java -jar ../bin/yuicompressor-2.3.5.jar $SRC.js > $DST.js | |
26 | if [ "$?" != 0 ]; then | |
27 | error | |
28 | fi | |
29 | cd .. | |
30 | } | |
31 | ||
32 | jarit() { | |
33 | SRC=$1 | |
34 | DST=$2 | |
35 | ||
36 | xjarit $SRC $DST-compiled | |
37 | catit $DST | |
38 | rm compiled/$DST-compiled.js | |
39 | } | |
40 | ||
41 | cd .. | |
42 | xjarit ../static/js/mochaui/mocha ../static/js/mochaui/mocha-compressed | |
43 | ||
44 | jarit qwebirc-concat qwebirc | |
45 | jarit ../js/ui/uglyui uglyui | |
46 | jarit swmui-concat swmui | |
47 | jarit ../js/ui/mochaui mochaui | |
48 | jarit ../js/ui/qui qui | |
49 | ||
50 | rm compiled/{swmui,qwebirc}-concat.js | |
51 | ||
52 | rmdir compiled |