5127026491
book support added) Update of port games/gnuchess to version 5.07. Includes support for building and installing opening book (as an OPTION) OPTIONs rule! PR: ports/74441 Submitted by: Conrad J. Sabatier <conrads@cox.net>
19 lines
345 B
Bash
19 lines
345 B
Bash
#!/bin/sh
|
|
|
|
DISTDIR=$1
|
|
WRKSRC=$2
|
|
|
|
[ -f ${WRKSRC}/src/book.dat ] && exit 0
|
|
|
|
builtin echo -e "\nCreating opening book for gnuchess...\n"
|
|
|
|
cp ${DISTDIR}/book_1.01.pgn.gz ${WRKSRC}/src/book.pgn.gz
|
|
|
|
cd ${WRKSRC}/src && gunzip -f book.pgn.gz
|
|
|
|
./gnuchess << END
|
|
book add book.pgn
|
|
quit
|
|
END
|
|
|
|
[ $? = 0 ] && builtin echo -e "\nBook successfully created!\n"
|