postinst is in gnuplot-qt 4.6.4-2.
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 | #!/bin/sh
set -e
case $1 in
configure|abort-upgrade|abort-remove|abort-deconfigure)
# Do not use dh_installtex to help squeeze backports and avoid (light)
# tex-common dependency. See #600013: tex-common:
# dpkg-reconfigure doesn't work on packages calling update-texmf-config
if [ "$DPKG_RUNNING_VERSION" ]; then
# If run under dpkg control call update-texmf-config, which
# will enable appropriate triggers
if which update-texmf-config 2>&1 > /dev/null; then
update-texmf-config lsr
fi
else
# Otherwise (e.g. on reconfigure) rebuild ls-R directly.
if which mktexlsr 2>&1 > /dev/null; then
mktexlsr /usr/share/texmf
fi
fi
;;
*)
esac
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|