postinst 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 | #! /bin/sh
# postinst script for xdvik-ja
#
# see: dh_installdeb(1)
set -e
case "$1" in
configure|reconfigure)
if ( dpkg-divert --list /usr/bin/xdvi.nonja | egrep -q ' by xdvik-ja$' ); then
if [ -f /usr/bin/xdvi -a -f /usr/bin/xdvi.nonja ]; then
rm -f /usr/bin/xdvi
fi
dpkg-divert --package xdvik-ja --remove --rename \
--divert /usr/bin/xdvi.nonja /usr/bin/xdvi
fi
if [ -f /etc/defoma/config/xdvik-ja.conf ]; then
rm -f /etc/defoma/config/xdvik-ja.conf
fi
if ( update-alternatives --list xdvi.bin | egrep -q 'xdvi-ja.real' );then
update-alternatives --remove xdvi.bin /usr/bin/xdvi-ja.real
fi
update-alternatives --install /usr/bin/xdvi.bin xdvi.bin \
/usr/bin/pxdvi-xaw 35
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
|