Add new plugin webadmin
[enigma2-plugins.git] / curlytx / 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 cp po/messages.pot tmp/$extdir/locale/CurlyTx.pot
14
15 python -O -m compileall src/ -f
16 cp src/*.py tmp/$extdir/
17 cp src/*.pyo tmp/$extdir/
18
19 ipkg-build tmp/
20 rm -r tmp
21
22 [ ! -d releases ] && mkdir releases
23 mv enigma2-plugin-extensions-curlytx_*_mipsel.ipk releases/