Commit 1940c563 authored by Bruno Coudoin's avatar Bruno Coudoin

Improved the per activity startup script, it now works

	when run from any directory.
	The bundleit script now works out of the box  (except python activities)


svn path=/branches/gcomprixo/; revision=2900
parent fe5c3f8e
2007-08-22 Bruno coudoin <bruno.coudoin@free.fr>
Improved the per activity startup script, it now works
when run from any directory.
The bundleit script now works out of the box (except python activities)
* src/administration-activity/runit.sh:
* src/advanced_colors-activity/runit.sh:
* src/algebra_by-activity/runit.sh:
* src/algebra_guesscount-activity/runit.sh:
* src/algebra_minus-activity/runit.sh:
* src/algebra_plus-activity/runit.sh:
* src/algorithm-activity/runit.sh:
* src/anim-activity/runit.sh:
* src/awele-activity/runit.sh:
* src/babymatch-activity/runit.sh:
* src/babyshapes-activity/runit.sh:
* src/ballcatch-activity/runit.sh:
* src/bargame-activity/runit.sh:
* src/billard-activity/runit.sh:
* src/canal_lock-activity/runit.sh:
* src/chat-activity/runit.sh:
* src/chess_computer-activity/runit.sh:
* src/chess_movelearn-activity/runit.sh:
* src/chess_partyend-activity/runit.sh:
* src/chronos-activity/runit.sh:
* src/click_on_letter-activity/runit.sh:
* src/clickanddraw-activity/runit.sh:
* src/clickgame-activity/runit.sh:
* src/clockgame-activity/runit.sh:
* src/colors-activity/runit.sh:
* src/connect4-2players-activity/runit.sh:
* src/connect4-activity/runit.sh:
* src/crane-activity/runit.sh:
* src/doubleentry-activity/runit.sh:
* src/draw-activity/runit.sh:
* src/drawnumber-activity/runit.sh:
* src/electric-activity/runit.sh:
* src/enumerate-activity/runit.sh:
* src/erase-activity/runit.sh:
* src/erase_clic-activity/runit.sh:
* src/fifteen-activity/runit.sh:
* src/followline-activity/runit.sh:
* src/gcompris-instance:
* src/geography-activity/runit.sh:
* src/geography_country-activity/runit.sh:
* src/gletters-activity/runit.sh:
* src/gnumch-equality-activity/runit.sh:
* src/gnumch-factors-activity/runit.sh:
* src/gnumch-inequality-activity/runit.sh:
* src/gnumch-multiples-activity/runit.sh:
* src/gnumch-primes-activity/runit.sh:
* src/guessnumber-activity/runit.sh:
* src/hanoi-activity/runit.sh:
* src/hanoi_real-activity/runit.sh:
* src/hexagon-activity/runit.sh:
* src/imageid-activity/runit.sh:
* src/imagename-activity/runit.sh:
* src/leftright-activity/runit.sh:
* src/login-activity/runit.sh:
* src/magic_hat_minus-activity/runit.sh:
* src/magic_hat_plus-activity/runit.sh:
* src/maze-activity/runit.sh:
* src/maze2DRelative-activity/runit.sh:
* src/maze3D-activity/runit.sh:
* src/mazeInvisible-activity/runit.sh:
* src/melody-activity/runit.sh:
* src/memory-activity/runit.sh:
* src/memory_add-activity/runit.sh:
* src/memory_add_minus-activity/runit.sh:
* src/memory_add_minus_mult_div-activity/runit.sh:
* src/memory_add_minus_mult_div_tux-activity/runit.sh:
* src/memory_add_minus_tux-activity/runit.sh:
* src/memory_add_tux-activity/runit.sh:
* src/memory_div-activity/runit.sh:
* src/memory_div_tux-activity/runit.sh:
* src/memory_minus-activity/runit.sh:
* src/memory_minus_tux-activity/runit.sh:
* src/memory_mult-activity/runit.sh:
* src/memory_mult_div-activity/runit.sh:
* src/memory_mult_div_tux-activity/runit.sh:
* src/memory_mult_tux-activity/runit.sh:
* src/memory_sound-activity/runit.sh:
* src/memory_sound_tux-activity/runit.sh:
* src/memory_tux-activity/runit.sh:
* src/missing_letter-activity/runit.sh:
* src/money-activity/runit.sh:
* src/money_cents-activity/runit.sh:
* src/mosaic-activity/runit.sh:
* src/paintings-activity/runit.sh:
* src/paratrooper-activity/runit.sh:
* src/planegame-activity/runit.sh:
* src/pythontemplate-activity/runit.sh:
* src/pythontest-activity/runit.sh:
* src/railroad-activity/runit.sh:
* src/read_colors-activity/runit.sh:
* src/readingh-activity/runit.sh:
* src/readingv-activity/runit.sh:
* src/redraw-activity/runit.sh:
* src/redraw_symmetrical-activity/runit.sh:
* src/reversecount-activity/runit.sh:
* src/scalesboard-activity/runit.sh:
* src/searace-activity/runit.sh:
* src/searace1player-activity/runit.sh:
* src/smallnumbers-activity/runit.sh:
* src/smallnumbers2-activity/runit.sh:
* src/submarine-activity/runit.sh:
* src/sudoku-activity/runit.sh:
* src/superbrain-activity/runit.sh:
* src/tangram-activity/runit.sh:
* src/target-activity/runit.sh:
* src/traffic-activity/runit.sh:
* src/tuxpaint-activity/runit.sh:
* src/watercycle-activity/runit.sh:
* src/wordprocessor-activity/runit.sh:
* src/wordsgame-activity/runit.sh:
* src/writing_tutor_image_match-activity/runit.sh:
* src/writing_tutor_missing_match-activity/runit.sh:
* src/writing_tutor_pattern_admin-activity/runit.sh:
* src/writing_tutor_template_match-activity/runit.sh:
2007-08-16 Bruno coudoin <bruno.coudoin@free.fr>
* src/boards/missingletter.c: GCompris was asserting when you
......
#!/bin/sh
path=`dirname $0`
activity=administration
plugindir=.
if [ -f ../boards/.libs/libpython.so ]
plugindir=$path
if [ -f $path/../boards/.libs/libpython.so ]
then
plugindir=../boards/.libs
plugindir=$path/../boards/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -a $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -a $*
#!/bin/sh
path=`dirname $0`
activity=advanced_colors
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /discovery/colors_group/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /discovery/colors_group/$activity $*
#!/bin/sh
path=`dirname $0`
activity=algebra_by
type=algebra
plugindir=.
if [ -f .libs/lib$type.so ]
plugindir=$path
if [ -f $path/.libs/lib$type.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /math/algebramenu/algebra_group/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /math/algebramenu/algebra_group/$activity $*
#!/bin/sh
path=`dirname $0`
activity=algebra_guesscount
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /math/algebramenu/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /math/algebramenu/$activity $*
#!/bin/sh
path=`dirname $0`
activity=algebra_minus
type=algebra
plugindir=.
if [ -f ../algebra_by-activity/.libs/lib$type.so ]
plugindir=$path
if [ -f $path/../algebra_by-activity/.libs/lib$type.so ]
then
plugindir=../algebra_by-activity/.libs
plugindir=$path/../algebra_by-activity/.libs
fi
./gcompris.bin -L $plugindir -P . -A ../algebra_by-activity/resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /math/algebramenu/algebra_group/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/../algebra_by-activity/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /math/algebramenu/algebra_group/$activity $*
#!/bin/sh
path=`dirname $0`
activity=algebra_plus
type=algebra
plugindir=.
if [ -f ../algebra_by-activity/.libs/lib$type.so ]
plugindir=$path
if [ -f $path/../algebra_by-activity/.libs/lib$type.so ]
then
plugindir=../algebra_by-activity/.libs
plugindir=$path/../algebra_by-activity/.libs
fi
./gcompris.bin -L $plugindir -P . -A ../algebra_by-activity/resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /math/algebramenu/algebra_group/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/../algebra_by-activity/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /math/algebramenu/algebra_group/$activity $*
#!/bin/sh
path=`dirname $0`
activity=algorithm
plugindir=.
if [ -f ../boards/.libs/libpython.so ]
plugindir=$path
if [ -f $path/../boards/.libs/libpython.so ]
then
plugindir=../boards/.libs
plugindir=$path/../boards/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /discovery/miscelaneous/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /discovery/miscelaneous/$activity $*
#!/bin/sh
path=`dirname $0`
activity=anim
plugindir=.
if [ -f ../boards/.libs/libpython.so ]
plugindir=$path
if [ -f $path/../boards/.libs/libpython.so ]
then
plugindir=../boards/.libs
plugindir=$path/../boards/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /fun/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /fun/$activity $*
#!/bin/sh
path=`dirname $0`
activity=awele
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /strategy/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /strategy/$activity $*
#!/bin/sh
path=`dirname $0`
activity=babymatch
type=shapegame
plugindir=.
if [ -f .libs/lib$type.so ]
plugindir=$path
if [ -f $path/.libs/lib$type.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /discovery/miscelaneous/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /discovery/miscelaneous/$activity $*
#!/bin/sh
path=`dirname $0`
activity=babyshapes
type=shapegame
plugindir=.
if [ -f ../babymatch-activity/.libs/lib$type.so ]
plugindir=$path
if [ -f $path/../babymatch-activity/.libs/lib$type.so ]
then
plugindir=../babymatch-activity/.libs
plugindir=$path/../babymatch-activity/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /discovery/miscelaneous/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /discovery/miscelaneous/$activity $*
#!/bin/sh
path=`dirname $0`
activity=ballcatch
plugindir=.
if [ -f ../boards/.libs/libpython.so ]
plugindir=$path
if [ -f $path/../boards/.libs/libpython.so ]
then
plugindir=../boards/.libs
plugindir=$path/../boards/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /computer/keyboard/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /computer/keyboard/$activity $*
#!/bin/sh
path=`dirname $0`
activity=bargame
plugindir=.
if [ -f ../boards/.libs/libpython.so ]
plugindir=$path
if [ -f $path/../boards/.libs/libpython.so ]
then
plugindir=../boards/.libs
plugindir=$path/../boards/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /strategy/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /strategy/$activity $*
#!/bin/sh
path=`dirname $0`
activity=billard
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /fun/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /fun/$activity $*
#!/bin/sh
path=`dirname $0`
activity=canal_lock
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /experience/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /experience/$activity $*
#!/bin/sh
path=`dirname $0`
activity=chat
plugindir=.
if [ -f ../boards/.libs/libpython.so ]
plugindir=$path
if [ -f $path/../boards/.libs/libpython.so ]
then
plugindir=../boards/.libs
plugindir=$path/../boards/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /fun/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /fun/$activity $*
#!/bin/sh
path=`dirname $0`
activity=chess_computer
type=chess
plugindir=.
if [ -f .libs/lib$type.so ]
plugindir=$path
if [ -f $path/.libs/lib$type.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /strategy/chess/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /strategy/chess/$activity $*
#!/bin/sh
path=`dirname $0`
activity=chess_movelearn
type=chess
plugindir=.
if [ -f ../chess_computer-activity/.libs/lib$type.so ]
plugindir=$path
if [ -f $path/../chess_computer-activity/.libs/lib$type.so ]
then
plugindir=../chess_computer-activity/.libs
plugindir=$path/../chess_computer-activity/.libs
fi
./gcompris.bin -L $plugindir -P . -A ../chess_computer-activity/resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /strategy/chess/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/../chess_computer-activity/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /strategy/chess/$activity $*
#!/bin/sh
path=`dirname $0`
activity=chess_partyend
type=chess
plugindir=.
if [ -f ../chess_computer-activity/.libs/lib$type.so ]
plugindir=$path
if [ -f $path/../chess_computer-activity/.libs/lib$type.so ]
then
plugindir=../chess_computer-activity/.libs
plugindir=$path/../chess_computer-activity/.libs
fi
./gcompris.bin -L $plugindir -P . -A ../chess_computer-activity/resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /strategy/chess/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/../chess_computer-activity/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /strategy/chess/$activity $*
#!/bin/sh
path=`dirname $0`
activity=chronos
type=shapegame
plugindir=.
if [ -f ../babymatch-activity/.libs/lib$type.so ]
plugindir=$path
if [ -f $path/../babymatch-activity/.libs/lib$type.so ]
then
plugindir=../babymatch-activity/.libs
plugindir=$path/../babymatch-activity/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /discovery/miscelaneous/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /discovery/miscelaneous/$activity $*
#!/bin/sh
path=`dirname $0`
activity=click_on_letter
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /reading/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /reading/$activity $*
#!/bin/sh
path=`dirname $0`
activity=clickanddraw
plugindir=.
if [ -f ../boards/.libs/libpython.so ]
plugindir=$path
if [ -f $path/../boards/.libs/libpython.so ]
then
plugindir=../boards/.libs
plugindir=$path/../boards/.libs
fi
./gcompris.bin -L $plugindir -P ../drawnumber-activity \
-A ../drawnumber-activity/resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /computer/mouse/$activity $*
$path/gcompris.bin -L $plugindir -P $path./drawnumber-activity \
-A $path/../drawnumber-activity/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /computer/mouse/$activity $*
#!/bin/sh
path=`dirname $0`
activity=clickgame
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /computer/mouse/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /computer/mouse/$activity $*
#!/bin/sh
path=`dirname $0`
activity=clockgame
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi
./gcompris.bin -L $plugindir -P . -A resources \
--config-dir=. -M activity \
--locale_dir=./locale -l /discovery/miscelaneous/$activity $*
$path/gcompris.bin -L $plugindir -P $path -A $path/resources \
--config-dir=. -M $path/activity \
--locale_dir=$path/locale -l /discovery/miscelaneous/$activity $*
#!/bin/sh
path=`dirname $0`
activity=colors
plugindir=.
if [ -f .libs/lib$activity.so ]
plugindir=$path
if [ -f $path/.libs/lib$activity.so ]
then
plugindir=.libs
plugindir=$path/.libs
fi