mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
vary room names
This commit is contained in:
parent
bb1e46fa81
commit
7e1066dbcc
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
NGAMES=${NGAMES:-1}
|
NGAMES=${NGAMES:-1}
|
||||||
|
NROOMS=${NROOMS:-1}
|
||||||
|
|
||||||
USE_GTK=${USE_GTK:-FALSE}
|
USE_GTK=${USE_GTK:-FALSE}
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@ fi
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: [env=val *] $0" 1>&2
|
echo "usage: [env=val *] $0" 1>&2
|
||||||
echo " current env variables and their values: " 1>&2
|
echo " current env variables and their values: " 1>&2
|
||||||
for VAR in NGAMES; do
|
for VAR in NGAMES NROOMS USE_GTK; do
|
||||||
echo "$VAR:" $(eval "echo \$${VAR}") 1>&2
|
echo "$VAR:" $(eval "echo \$${VAR}") 1>&2
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -24,6 +25,7 @@ do_device() {
|
||||||
DEV=$2
|
DEV=$2
|
||||||
NDEVS=$3
|
NDEVS=$3
|
||||||
LOG=$4
|
LOG=$4
|
||||||
|
ROOM=ROOM_$((GAME%NROOMS))
|
||||||
|
|
||||||
FILE="GAME_${GAME}_${DEV}.xwg"
|
FILE="GAME_${GAME}_${DEV}.xwg"
|
||||||
rm -f $FILE
|
rm -f $FILE
|
||||||
|
@ -33,7 +35,7 @@ do_device() {
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
sleep $((RANDOM%5))
|
sleep $((RANDOM%5))
|
||||||
./obj_linux_memdbg/xwords -C foo -r edd $OTHERS \
|
./obj_linux_memdbg/xwords -C $ROOM -r edd $OTHERS \
|
||||||
-d dict.xwd -f $FILE $PLAT_PARMS >/dev/null 2>>$LOG &
|
-d dict.xwd -f $FILE $PLAT_PARMS >/dev/null 2>>$LOG &
|
||||||
PID=$!
|
PID=$!
|
||||||
sleep $((RANDOM%10+10))
|
sleep $((RANDOM%10+10))
|
||||||
|
|
Loading…
Add table
Reference in a new issue