use position 41 for the main menu; we are still on top
[enigma2-curlytx.git] / build.sh
1 #!/bin/sh
2 [ -d tmp ] && rm -r tmp
3
4 extdir=usr/lib/enigma2/python/Plugins/Extensions/CurlyTx
5 mkdir -p tmp/$extdir/locale/
6 cp -R CONTROL tmp/
7
8 for i in po/??.mo; do
9     lang=`basename "$i" .mo`
10     mkdir -p tmp/$extdir/locale/$lang/LC_MESSAGES
11     cp "$i" tmp/$extdir/locale/$lang/LC_MESSAGES/CurlyTx.mo
12 done
13
14 python -O -m compileall src/ -f
15 cp src/*.py tmp/$extdir/
16 cp src/*.pyo tmp/$extdir/
17
18 ipkg-build tmp/
19 rm -r tmp
20
21 [ ! -d releases ] && mkdir releases
22 mv enigma2-plugin-extensions-curlytx_*_mipsel.ipk releases/