Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 3 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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