Browse Source

"Alan J. Wylie" <ebpxyvahk@wylie.me.uk>:

created an executable shell script the gnuchess server mode


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2146 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
c1bb519f48
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      package/kasc/gnuchess/gnuchess.conf

+ 11
- 0
package/kasc/gnuchess/gnuchess.conf

@ -24,3 +24,14 @@
bindir=$root/$ROCKCFG_PKG_GAMES_BINDIR
datadir=$root/$ROCKCFG_PKG_GAMES_DATADIR
create_gnuchessx(){
# create an executable shell script that allows
# xboard to run gnuchess in server mode
prog=$bindir/gnuchessx
echo -e "#! /bin/sh\nexec gnuchess -x" > $prog
chmod a+x $prog
}
hookadd postinstall 3 "create_gnuchessx"

Loading…
Cancel
Save