equal
deleted
inserted
replaced
|
1 |
|
2 if [ $# -eq 0 ] |
|
3 then |
|
4 echo "No argument was provided, looking for mdplayer_path" |
|
5 if [ ! -f "mdplayer_path" ] |
|
6 then |
|
7 echo "Error: mdplayer_path file does not exist and no argument was provided" |
|
8 exit 1 |
|
9 fi |
|
10 MDPLAYER_PATH=$(cat mdplayer_path) |
|
11 if [ -z MDPLAYER_PATH ] |
|
12 then |
|
13 echo "File is empty" |
|
14 exit 1 |
|
15 fi |
|
16 else |
|
17 MDPLAYER_PATH=$1 |
|
18 fi |
|
19 |
|
20 echo "Compiling Metadataplayer" |
|
21 |
|
22 sh $MDPLAYER_PATH/sbin/res/ant/bin/ant -f $MDPLAYER_PATH/sbin/build/client.xml |
|
23 |
|
24 echo "Copying to Platform :" |
|
25 |
|
26 echo " Copying core files and widgets" |
|
27 |
|
28 cp -R $MDPLAYER_PATH/test/metadataplayer/* ../../src/remie/static/remie/metadataplayer |
|
29 |
|
30 echo " Copying JS libs" |
|
31 |
|
32 cp -R $MDPLAYER_PATH/src/js/libs/*.js ../../src/remie/static/remie/js |
|
33 |
|
34 echo " Copying SWF libs" |
|
35 |
|
36 cp -R $MDPLAYER_PATH/src/js/libs/*.swf ../../src/remie/static/remie/swf |