ef1289e04f
sync factory with devel project; license tag was fixed by spec-formatter OBS-URL: https://build.opensuse.org/request/show/102712 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnuchess?expand=0&rev=10
29 lines
628 B
Bash
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 "$@" &
|