mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-15 20:48:00 +01:00
test script
This commit is contained in:
parent
6602eccb2a
commit
a0539a4ff8
1 changed files with 29 additions and 0 deletions
29
xwords4/linux/runme.sh
Executable file
29
xwords4/linux/runme.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -u -e
|
||||
|
||||
RACKPIPE=/tmp/rack_pipe
|
||||
BOARDPIPE=/tmp/board_pipe
|
||||
|
||||
DICT=./BasEnglish2to8.xwd
|
||||
|
||||
onsignals() {
|
||||
echo "onsignals called"
|
||||
rm -f $RACKPIPE $BOARDPIPE
|
||||
}
|
||||
|
||||
trap onsignals TERM INT ABRT
|
||||
|
||||
if [ ! -e $RACKPIPE ]; then
|
||||
mkfifo $RACKPIPE && echo "created pipe $RACKPIPE"
|
||||
fi
|
||||
if [ ! -e $BOARDPIPE ]; then
|
||||
mkfifo $BOARDPIPE && echo "created pipe $RACKPIPE"
|
||||
fi
|
||||
|
||||
# obj_linux_memdbg/xwords --board-pipe $BOARDPIPE --rack-pipe $RACKPIPE \
|
||||
# --game-dict dict.xwd || true
|
||||
obj_linux_memdbg/xwords --board-pipe $BOARDPIPE --rack "ABCQXZW" \
|
||||
--game-dict $DICT || true
|
||||
|
||||
# rm -f $RACKPIPE $BOARDPIPE
|
Loading…
Add table
Reference in a new issue