gcompris r3360 - branches/gcomprixogoo/src
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3360 - branches/gcomprixogoo/src
- Date: Tue, 8 Apr 2008 22:45:01 +0100 (BST)
Author: bcoudoin
Date: Tue Apr 8 22:45:00 2008
New Revision: 3360
URL: http://svn.gnome.org/viewvc/gcompris?rev=3360&view=rev
Log:
added missing files from gcomprixo branch for the XO bundle
Added:
branches/gcomprixogoo/src/old-gcompris-factory (contents, props changed)
branches/gcomprixogoo/src/old-gcompris-instance (contents, props changed)
Added: branches/gcomprixogoo/src/old-gcompris-factory
==============================================================================
--- (empty file)
+++ branches/gcomprixogoo/src/old-gcompris-factory Tue Apr 8 22:45:00 2008
@@ -0,0 +1,12 @@
+#!/bin/sh
+export SUGAR_BUNDLE_PATH=`dirname $0`
+
+[ -z "$SUGAR_PROFILE" ] && SUGAR_PROFILE=default
+logdir="$HOME/.sugar/$SUGAR_PROFILE/logs"
+[ ! -d "$logdir" ] && mkdir -p "$logdir"
+log="$logdir/GCompris.log"
+
+echo Started "$0" "$@" >> "$log"
+
+export PATH=$SUGAR_BUNDLE_PATH:$PATH
+exec sugar-native-factory "$@" >> "$log" 2>&1
Added: branches/gcomprixogoo/src/old-gcompris-instance
==============================================================================
--- (empty file)
+++ branches/gcomprixogoo/src/old-gcompris-instance Tue Apr 8 22:45:00 2008
@@ -0,0 +1,37 @@
+#!/bin/sh
+echo "$0" "$@"
+
+# arguments are unordered, have to loop
+args=""
+while [ -n "$2" ] ; do
+ args="$args $1 $2"
+ case "$1" in
+ bundle_id) bundle_id="$2" ;;
+ activity_id) activity_id="$2" ;;
+ pservice_id) pservice_id="$2" ;;
+ object_id) object_id="$2" ;;
+ uri) uri="$2" ;;
+ *) echo unknown argument $1 $2 ;;
+ esac
+ shift;shift
+done
+
+# really need bundle id and activity id
+if [ -z "$bundle_id" -o -z "$activity_id" ] ; then
+ echo ERROR: bundle_id and activity_id arguments required
+ echo Aborting
+ exit 1
+fi
+
+# some debug output
+echo launching $bundle_id instance $activity_id
+[ -n "$pservice_id" ] && echo shared as $pservice_id
+[ -n "$object_id" ] && echo with journal obj $obj_id
+[ -n "$uri" ] && echo loading uri $uri
+
+# now run GCompris startup script
+exec $SUGAR_BUNDLE_PATH/runit.sh $SUGAR_BUNDLE_PATH \
+ --sugarBundleId $bundle_id \
+ --sugarActivityId $activity_id \
+ $args
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]