if [ $# -ne 1 ]
then
   echo "Usage: make_book <pgnfile>"
   exit
fi
rm -f __tmp__book.dat
../src/gnuchess xboard <<EOF
book add $1 __tmp__book.dat
book convert __tmp__book.dat book.bin
EOF
rm -f __tmp__book.dat
