# HG changeset patch # User veltr # Date 1346324795 -7200 # Node ID 30f650574bca909956ecb83e60e5b6d0fab2a6e9 # Parent 1e64e46a954f2850032c03d5c68bc2c3df1556bf Added a script to copy compiled files to LDT Platform diff -r 1e64e46a954f -r 30f650574bca .hgignore --- 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 diff -r 1e64e46a954f -r 30f650574bca sbin/build/compil-to-platform.sh.tmpl --- /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 +