build script #2
authorChristian Weiske <cweiske@cweiske.de>
Thu, 17 Nov 2011 21:50:53 +0000 (22:50 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 17 Nov 2011 21:50:53 +0000 (22:50 +0100)
.gitignore [new file with mode: 0644]
build.sh
src/.gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..7e78c36
--- /dev/null
@@ -0,0 +1 @@
+releases/
index 6db65c9..2f5b4a8 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -9,9 +9,14 @@ for i in po/??.mo; do
     lang=`basename "$i" .mo`
     mkdir -p tmp/$extdir/locale/$lang/LC_MESSAGES
     cp "$i" tmp/$extdir/locale/$lang/LC_MESSAGES/CurlyTx.mo
-    cp src/*.py tmp/$extdir/
-    python -O -m compileall src/ -d tmp/$extdir
 done
 
+python -O -m compileall src/ -f
+cp src/*.py tmp/$extdir/
+cp src/*.pyo tmp/$extdir/
+
 ipkg-build tmp/
 rm -r tmp
+
+[ ! -d releases ] && mkdir releases
+mv enigma2-plugin-extensions-curlytx_*_mipsel.ipk releases/
index 0d20b64..52e4e61 100644 (file)
@@ -1 +1,2 @@
 *.pyc
+*.pyo