xwords/xwords4/linux/runme.sh

30 lines
617 B
Bash
Raw Normal View History

2011-04-17 07:36:39 +02:00
#!/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