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
@ -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"