Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | magnus | 1 | #! /bin/sh |
2 | # prerm script for #PACKAGE# |
||
3 | # |
||
4 | # see: dh_installdeb(1) |
||
5 | |||
6 | set -e |
||
7 | |||
8 | # summary of how this script can be called: |
||
9 | # * <prerm> `remove' |
||
10 | # * <old-prerm> `upgrade' <new-version> |
||
11 | # * <new-prerm> `failed-upgrade' <old-version> |
||
12 | # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> |
||
13 | # * <deconfigured's-prerm> `deconfigure' `in-favour' |
||
14 | # <package-being-installed> <version> `removing' |
||
15 | # <conflicting-package> <version> |
||
16 | # for details, see http://www.debian.org/doc/debian-policy/ or |
||
17 | # the debian-policy package |
||
18 | |||
19 | ICONDIR=/etc/X11/cursors |
||
20 | |||
21 | case "$1" in |
||
5 | magnus | 22 | remove|deconfigure) |
3 | magnus | 23 | for theme in `find $ICONDIR -regex '.*crystal\(blue\|gray\|green\|white\).*theme$'`; do |
24 | update-alternatives --remove x-cursor-theme $theme |
||
25 | done |
||
26 | ;; |
||
5 | magnus | 27 | upgrade|failed-upgrade) |
3 | magnus | 28 | ;; |
29 | *) |
||
30 | echo "prerm called with unknown argument \`$1'" >&2 |
||
31 | exit 1 |
||
32 | ;; |
||
33 | esac |
||
34 | |||
35 | # dh_installdeb will replace this with shell code automatically |
||
36 | # generated by other debhelper scripts. |
||
37 | |||
38 | #DEBHELPER# |
||
39 | |||
40 | exit 0 |
||
41 | |||
42 |