Debian Codegraph @

debian/gnubg.postinst

raw
1 #!/bin/sh
2 #
3 # Build the bearoff databases after install if requested.
4
5 set -e
6
7 if [ "configure" = "$1" ] || [ "reconfigure" = "$1" ] ; then
8 . /usr/share/debconf/confmodule || exit
9 db_version 2.0
10 db_get gnubg/build-bearoffs
11
12 if [ "$RET" = "true" ] ; then
13 if [ ! -f "/var/lib/gnubg/gnubg_ts0.bd" ] ; then
14 echo 'Building two-sided bearoff database' \
15 '(this may take several minutes)' >&2
16 /usr/games/makebearoff -t 6x6 \
17 -f /var/lib/gnubg/gnubg_ts0.bd > /dev/null 2>&1
18 fi
19 fi
20 fi
21
22 #DEBHELPER#