postinst is in man2html 1.6g-8.
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 | #!/bin/sh
# vim: ts=4:sw=4:et
set -e
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
. /usr/share/debconf/confmodule
if [ "$1" != "configure" ] ; then
db_stop || true
exit 0
fi
INDEX_SCRIPT=/etc/cron.weekly/man2html
if [ -e /var/cache/man2html/ ] \
&& which index++ >/dev/null \
&& [ -x "$INDEX_SCRIPT" ] \
&& [ ! -e /var/cache/man2html/man2html.swish++.index ] \
&& [ ! -e /var/cache/man2html/man2html.swish++.index.tmp ]; then
db_get man2html/index_manpages || true
db_stop || true
if [ "$RET" = "true" ]; then
tf=`tempfile -p 'm2h-' -s '.swish++.out'`
echo "Running $INDEX_SCRIPT in the background to index your manpages"
echo "(redirected to $tf)."
$INDEX_SCRIPT 2>&1 > "$tf" &
fi
else
db_stop || true
fi
exit 0
|