File: postrm

package info (click to toggle)
ghostview 1.5-27
  • links: PTS
  • area: main
  • in suites: woody
  • size: 736 kB
  • ctags: 960
  • sloc: ansic: 8,763; makefile: 310; sh: 81
file content (35 lines) | stat: -rw-r--r-- 725 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
33
34
35
#!/bin/sh

set -e

case "$1" in
    upgrade)
        ;;
    remove|purge)
        # update menus
        if command -v update-menus > /dev/null 2>&1; then
            update-menus
        fi

        # remove obselete mime entries
        if command -v install-mime > /dev/null 2>&1; then
                install-mime --remove --noparmcheck --package=ghostview
        fi

        # update mime
        if command -v update-mime > /dev/null 2>&1; then
            update-mime
        fi

        if [ "$1" = "purge" ]; then
                rm -f /etc/X11/app-defaults/Ghostview
        fi

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

exit 0

# vim:set ai tw=0 et sw=8 softtabstop=8: