source: trunk/debathena/debathena/locker-menu/debian/debathena-locker-menu.postrm @ 25695

Revision 25695, 1.2 KB checked in by jdreed, 12 years ago (diff)
Clean up in postrm
RevLine 
[25695]1#!/bin/sh
2# postrm script for debathena-locker-menu
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9#        * <postrm> `remove'
10#        * <postrm> `purge'
11#        * <old-postrm> `upgrade' <new-version>
12#        * <new-postrm> `failed-upgrade' <old-version>
13#        * <new-postrm> `abort-install'
14#        * <new-postrm> `abort-install' <old-version>
15#        * <new-postrm> `abort-upgrade' <old-version>
16#        * <disappearer's-postrm> `disappear' <overwriter>
17#          <overwriter-version>
18# for details, see http://www.debian.org/doc/debian-policy/ or
19# the debian-policy package
20
21SHAREDIR="/usr/share/debathena-locker-menu"
22ICONS="acroread.png mathematica.png maple.png sas.png stata.png tecplot.png xess.png"
23
24case "$1" in
25    purge|remove)
26        for i in $ICONS; do
27            if [ -L "$SHAREDIR/$i" ] &&
28                ! [ -f "$(readlink "$SHAREDIR/$i")" ]; then
29                rm -f "$SHAREDIR/$i"
30            fi
31        done
32    ;;
33
34    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
35    ;;
36
37    *)
38        echo "postrm called with unknown argument \`$1'" >&2
39        exit 1
40    ;;
41esac
42
43# dh_installdeb will replace this with shell code automatically
44# generated by other debhelper scripts.
45
46#DEBHELPER#
47
48exit 0
Note: See TracBrowser for help on using the repository browser.