File: postinst

package info (click to toggle)
latex2html 98.1-pre2-b6-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,880 kB
  • ctags: 2,808
  • sloc: perl: 34,603; makefile: 690; sh: 107
file content (30 lines) | stat: -rw-r--r-- 593 bytes parent folder | download
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
# $Id: postinst,v 1.3 1998/10/13 16:55:50 srivasta Exp $
set -e

case "$1" in
    configure)
        # continue below
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        exit 0;
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2;
        exit 0;
    ;;
esac

if test -x /usr/bin/update-menus; then update-menus; fi


# the former shall exist if teTeX does, if the ls-R file does not
# exist, then probably teTeX is being installed too, and will run
# texhash
if [ -x /usr/bin/texhash -a -e /usr/lib/texmf/ls-R ]; then
    texhash
fi

exit 0