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