File: gnubg.postinst

package info (click to toggle)
gnubg 1.06.002-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 26,608 kB
  • sloc: ansic: 97,578; xml: 15,136; sh: 4,919; yacc: 700; makefile: 582; python: 573; lex: 297; sql: 238; awk: 26
file content (22 lines) | stat: -rwxr-xr-x 580 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# Build the bearoff databases after install if requested.

set -e

if [ "configure" = "$1" ] || [ "reconfigure" = "$1" ] ; then
    . /usr/share/debconf/confmodule || exit
    db_version 2.0
    db_get gnubg/build-bearoffs

    if [ "$RET" = "true" ] ; then
        if [ ! -f "/var/lib/gnubg/gnubg_ts0.bd" ] ; then
            echo 'Building two-sided bearoff database' \
                '(this may take several minutes)' >&2
            /usr/games/makebearoff -t 6x6 \
                -f /var/lib/gnubg/gnubg_ts0.bd > /dev/null 2>&1
        fi
    fi
fi

#DEBHELPER#