gcompris r3226 - branches/gcomprixo/src



Author: bcoudoin
Date: Fri Jan 25 00:15:01 2008
New Revision: 3226
URL: http://svn.gnome.org/viewvc/gcompris?rev=3226&view=rev

Log:
fixed to bundle timers image properly


Modified:
   branches/gcomprixo/src/bundleit.sh

Modified: branches/gcomprixo/src/bundleit.sh
==============================================================================
--- branches/gcomprixo/src/bundleit.sh	(original)
+++ branches/gcomprixo/src/bundleit.sh	Fri Jan 25 00:15:01 2008
@@ -15,30 +15,41 @@
     lang=$2
 fi
 
-if test "$1" != "draw-activity" && \
-    test "$1" != "anim-activity" && \
-    test "$1" != "pythontest-activity" && \
-    test "$1" != "electric-activity" ; then
+activitysrc=`basename $1`
+echo "Processing activity $activitysrc"
+if test "$activitysrc" != "draw-activity" && \
+    test "$activitysrc" != "anim-activity" && \
+    test "$activitysrc" != "pythontest-activity" && \
+    test "$activitysrc" != "electric-activity" ; then
   draw="--exclude resources/skins/gartoon/draw"
 else
   draw=""
 fi
 
-if test "$1" = "administration-activity" || \
-   test "$1" = "tuxpaint-activity" || \
-   test "$1" = "melody-activity" || \
-   test "$1" = "gcompris-activity" ; then
-  echo "Skipping $1"
+if test "$activitysrc" = "administration-activity" || \
+   test "$activitysrc" = "tuxpaint-activity" || \
+   test "$activitysrc" = "melody-activity" || \
+   test "$activitysrc" = "gcompris-activity" ; then
+  echo "Skipping $activitysrc"
   exit 0
 fi
 
-if test -f $1/init_path.sh; then
-  . $1/init_path.sh
+if test -f $activitysrc/init_path.sh; then
+  . $activitysrc/init_path.sh
 else
-  echo "ERROR: Cannot find $1/init_path.sh"
+  echo "ERROR: Cannot find $activitysrc/init_path.sh"
   exit 1
 fi
 
+with_clock="--exclude resources/skins/gartoon/timers"
+for act in `grep timers/clock */*.c | cut -d/ -f1 | sort -u | xargs`
+do
+  if test "$activitysrc" = $act; then
+    echo "Adding timers/clock files"
+    with_clock=""
+  fi
+done
+
 # Create the Sugar specific startup scripts
 activity_dir=${activity}.activity
 if [ -d $activity_dir ]
@@ -47,7 +58,7 @@
   exit 1
 fi
 
-cp -a $1 $activity_dir
+cp -a $activitysrc $activity_dir
 mkdir -p $activity_dir/activity
 mkdir -p $activity_dir/bin
 cp activity-gcompris.svg $activity_dir/activity
@@ -111,7 +122,7 @@
     --exclude ".svn" \
     --exclude "resources/skins/babytoy" \
     $draw \
-    --exclude "resources/skins/gartoon/timers" \
+    $with_clock \
     --exclude ".deps" \
     --exclude "Makefile*" \
     --exclude "*.c" \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]