--- a/.hgignore Thu Aug 30 12:51:04 2012 +0200
+++ b/.hgignore Thu Aug 30 13:06:35 2012 +0200
@@ -28,4 +28,6 @@
syntax: regexp
^assets/player_bab_ldt/player_bab_ldt/bin$
syntax: regexp
-^\.settings/org\.eclipse\.core\.runtime\.prefs$
\ No newline at end of file
+^\.settings/org\.eclipse\.core\.runtime\.prefs$
+syntax: regexp
+^sbin/build/compil-to-platform\.sh$
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/build/compil-to-platform.sh.tmpl Thu Aug 30 13:06:35 2012 +0200
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+echo "Compiling Metadataplayer"
+
+sh ../res/ant/bin/ant -f client.xml
+
+echo "Copying to Platform :"
+
+echo " Copying core files and widgets"
+
+cp -R ../../test/metadataplayer/* ~/shared/platform/src/ldt/ldt/static/ldt/metadataplayer
+
+echo " Copying JS libs"
+
+cp -R ../../src/js/libs/*.js ~/shared/platform/src/ldt/ldt/static/ldt/js
+
+echo " Copying SWF libs"
+
+cp -R ../../src/js/libs/*.swf ~/shared/platform/src/ldt/ldt/static/ldt/swf
+
+echo "Activating virtual environment"
+
+source ~/venv_pf/activate.sh
+
+cd ~/shared/platform/web
+
+echo "Collecting static files"
+
+python manage.py collectstatic --noinput
+