preinst is in xdvik-ja 22.84.16-j1.40+t1lib-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40  | #!/bin/sh
# preinst script for xdvik-ja
#
# see: dh_installdeb(1)
set -e
umask 022
case "$1" in
    upgrade|install)
    if ( dpkg --compare-versions "$2" le "22.82-j1.21-0.1" ); then
        if [ -f /etc/texmf/vfontmap ]; then
            mv /etc/texmf/vfontmap /etc/texmf/vfontmap.dpkg-old
        fi
    fi
    if ( dpkg --compare-versions "$2" le "22.84.13-j1.34-2.2" ); then
        if [ -x /usr/bin/defoma-app ]; then
            defoma-app -t purge xdvik-ja
        fi
    fi
    if ( dpkg --compare-versions "$2" ge "22.84.13-j1.34" ) ; then
        if [ -f /var/lib/texmf/vfontmap ]; then
            rm -f /var/lib/texmf/vfontmap
        fi
    fi
    ;;
    abort-upgrade)
    ;;
    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
 |