]>
Commit | Line | Data |
---|---|---|
9cdf0754 CP |
1 | #!/bin/sh |
2 | mkdir -p compiled | |
3 | rm -f compiled/*.js | |
4 | ||
5 | cd js | |
6 | cat 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 | |
7 | cat ui/swmlayout.js ui/swmui.js > ../compiled/swmui-concat.js | |
8 | cd ../compiled | |
9 | ||
271d7fb1 | 10 | error() { |
9cdf0754 CP |
11 | cd .. |
12 | rm compiled/*-compiled.js | |
13 | exit 1 | |
14 | } | |
15 | ||
271d7fb1 | 16 | jarit() { |
9cdf0754 CP |
17 | java -jar ../bin/yuicompressor-2.3.5.jar $1.js > $2-compiled.js |
18 | if [ "$?" != 0 ]; then | |
19 | error | |
20 | fi | |
21 | } | |
22 | ||
271d7fb1 | 23 | catit() { |
9cdf0754 CP |
24 | cat js/copyright.js compiled/$1-compiled.js > static/js/$1.js |
25 | } | |
26 | ||
27 | jarit qwebirc-concat qwebirc | |
28 | jarit ../js/ui/uglyui uglyui | |
29 | jarit swmui-concat swmui | |
30 | ||
31 | cd .. | |
32 | catit qwebirc | |
33 | catit uglyui | |
34 | catit swmui | |
35 | rm -f compiled/*.js | |
36 | rmdir compiled |