This file is indexed.

postinst is in man2html 1.6g-6.

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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
# $Id: man2html.postinst 250 2011-03-06 17:56:08Z robert $
# 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

# Added in 1.6g-5: convert doc/man2html directory into a symlink
docdir=/usr/share/doc/man2html
if [ -e "$docdir" ] && [ ! -L "$docdir" ]; then
    [ ! -d "$docdir" ] || rmdir --ignore-fail-on-non-empty "$docdir"

    if [ -e "$docdir" ]; then
        echo "The old $docdir directory contains locally modified files"   >&2
        echo "and will be saved as $docdir.SAVED_BY_POSTINST.$$"           >&2

        if ! mv "$docdir" "$docdir.SAVED_BY_POSTINST.$$"; then
            echo "Failed to rename $docdir, please remove it manually"     >&2
            echo "and then retry the upgrade"                              >&2
        fi
    fi
    ln -sf man2html-base "$docdir"
fi


INDEX_SCRIPT=/etc/cron.weekly/man2html

if [ -e /var/cache/man2html/ ] \
    && [ -x /usr/bin/index++ ] \
        && [ -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