File: postrm

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 (32 lines) | stat: -rw-r--r-- 586 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
31
32
#! /bin/sh
#$Id: postrm,v 1.1 1998/07/24 18:15:52 srivasta Exp $

set -e
case "$1" in
    remove)
        if test -x /usr/bin/update-menus; then update-menus; fi
	
	if [ -x /usr/bin/texhash -a -e /usr/lib/texmf/ls-R ]; then
	    texhash
	fi
    ;;

    upgrade)
    ;;

    purge)
	if test -x /usr/bin/update-menus; then update-menus; fi
	
	if [ -x /usr/bin/texhash -a -e /usr/lib/texmf/ls-R ]; then
	    texhash
	fi
    ;;

    failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

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