This file is indexed.

preinst is in latex2html 2008-debian1-10.

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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#! /bin/sh
# preinst.skeleton
# Skeleton maintainer script showing all the possible cases.
# Written by Charles Briscoe-Smith, March-June 1998.  Public Domain.

# Abort if any command returns an error value
set -e

# This script is called before this version of this package is installed.
# When this script is called, the package's files have not been unpacked
# yet.

case "$1" in
  install)
    # About to install this package.
    :
    if [ -d /var/www/usr/lib/latex2html ]; then
	rm -rf /var/www/usr/lib/latex2html
    else
	true;
    fi
    # Add a diversion.  This is one of the few things which may be done
    # before installing any files from the package.
    #: dpkg-divert --package foo --add --rename \
    #:             --divert /usr/bin/other.real /usr/bin/other

    # There are two sub-cases:
    if test "${2+set}" = set; then
      # The configuration files from version $2 of this package are
      # still on the system.
      :

    else
      # There is no existing configuration; install from scratch.
      :

    fi

    # Change the default config file name
    if [ -e /etc/latex2html.config ]; then
	cp /etc/latex2html.config /etc/latex2html.conf
    fi

    ;;
  upgrade)
    # About to upgrade this package from version $2 TO THIS VERSION.
    # "prerm upgrade" has already been called for the old version of
    # this package.
    :
    if [ -d /var/www/usr/lib/latex2html ]; then
	rm -rf /var/www/usr/lib/latex2html
    else
	true;
    fi

    # Change the default config file name
    if [ -e /etc/latex2html.config ]; then
	cp /etc/latex2html.config /etc/latex2html.conf
    fi

    ;;
  abort-upgrade)
    # Back out of an attempt to upgrade this package FROM THIS VERSION to
    # version $2.  Undo the effects of "postrm upgrade $2".
    :

    ;;
  *) echo "$0: didn't understand being called with \`$1'" 1>&2
     exit 0;;
esac



exit 0