SHA256
1
0
forked from pool/gnuchess
gnuchess/xgnuchess
Pavol Rusnak f0dd6c34d0 - updated gnuchess to (unofficial) version 5.07.94.1b
- updated to most recent book.dat
- removed obsolete getline patch
- added patches to fix a few rpmlint-warnings/errors
- added gnuchess-add_new_bookpath.diff so gnuchess finds the default
  opening book in /usr/share/gnuchess

- updated to (unofficial) version 5.07.9b by M. Vandenbergh
- added script "xgnuchess" to start xboard with gnuchess
  as first and second chess engine
- patches refreshed
- description updated

OBS-URL: https://build.opensuse.org/package/show/games/gnuchess?expand=0&rev=5
2011-04-15 12:14:20 +00:00

29 lines
628 B
Bash

#! /bin/sh
#
# Run xboard with gnuchess as chess program.
#
# modified from "xcrafty" originally from:
#
# Steffen Winterfeldt <wfeldt@suse.de>
#
# Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. All rights reserved.
#
[ "$DISPLAY" ] || {
echo >&2 "This is not a text mode application!"
exit 63
}
emsg="You\'ll have to install package \'xboard\' first to run xgnuchess."
which xboard >/dev/null 2>&1 || {
if tty -s ; then
sh -c "echo >&2 $emsg"
else
xterm +sb -T "xgnuchess error" -bg white -fg red -e sh -c "echo $emsg ; read"
fi
exit 42
}
exec xboard -size bulky -fcp gnuchessx -scp gnuchessx "$@" &