build script
[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     cp src/*.py tmp/$extdir/
13     python -O -m compileall src/ -d tmp/$extdir
14 done
15
16 ipkg-build tmp/
17 rm -r tmp